summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d95282c1025c4b65981eb8596a97f6e95f0c305 (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
# Contributor: Richard Murri <admin@richardmurri.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
 
pkgname=emacs-icicles
pkgver=23710 # Taken from icicles.el
pkgrel=1
pkgdesc="an emacs library that enhances minibuffer completion"
arch=('any')
url="http://www.emacswiki.org/emacs/Icicles"
license=('GPL')
source=("icicles.zip::https://github.com/emacsmirror/icicles/archive/master.zip")
md5sums=('e674331f00557429e5f093f4993d0695')
makedepends=(wget)
install=icicles.install

pkgver() {
  cd icicles-master
  echo $(awk '/Update #:/ {print $4}' icicles.el)
}

build() {
  cd icicles-master
  emacs -Q -batch -L . -f batch-byte-compile *.el || true
}

package() {
  install -d  "$pkgdir"/usr/share/emacs/site-lisp/icicles
  cp -r "$srcdir"/icicles-master/* "$pkgdir"/usr/share/emacs/site-lisp/icicles
}