summaryrefslogtreecommitdiff
path: root/pcr/emacs-dash/PKGBUILD
blob: 7cd35e4d4f35649e7c2f23cf06e88f85f06431f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor (AUR): ebiadsu
# Previous Maintainer (AUR): holos
# Contributor (AUR): Sebastien Duthil <duthils@free.fr>
# Maintainer (AUR): Stefan Husmann <stefan-husmann@t-online.de>

# parabola changes and rationale:
#  no changes.

pkgname=emacs-dash
pkgver=2.13.0
pkgrel=2
pkgdesc='A modern list API for Emacs'
arch=('any')
url="https://github.com/magnars/dash.el"
license=('GPL')
makedepends=('emacs')
depends=('emacs')
source=("$pkgname-$pkgver.tar.gz::https://github.com/magnars/dash.el/archive/$pkgver.tar.gz")
md5sums=('f246c9665345a6870820f8f9567c7c18')

build() {
  cd dash.el-"$pkgver"
  emacs -Q -batch -L . -f batch-byte-compile dash{,-functional}.el
}

package() {
  cd dash.el-"$pkgver"
  install -d "$pkgdir"/usr/share/emacs/site-lisp/dash
  install -Dm644 dash{,-functional}.{el,elc} \
	  "$pkgdir"/usr/share/emacs/site-lisp/dash
  gzip "$pkgdir"/usr/share/emacs/site-lisp/dash/*.el
  install -Dm644 dash.info "$pkgdir"/usr/share/info/dash.info
}