summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f77f93d6a3705692d47a89b8b22b85b6aaf1dbb9 (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
# Contributor: Alex Whitt <alex.joseph.whitt@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=emacs-auto-complete
pkgver=1.5.1
pkgrel=2
pkgdesc="A auto-complete declaration for simplifying your .emacs"
url="https://github.com/auto-complete/auto-complete"
arch=('any')
license=('GPL3')
depends=('emacs' 'emacs-popup-el' 'emacs-fuzzy')
makedepends=('git')
provides=('emacs-auto-complete')
source=("$pkgname-$pkgver.tar.gz::https://github.com/auto-complete/auto-complete/archive/v${pkgver}.tar.gz")
sha256sums=('1bfb4351c3e49681a875dab937c25b6b38e4bf8a8cd64bcba1954300242578cb')
install=${pkgname}.install

build() {
  cd auto-complete-${pkgver}
  emacs -q --no-splash -batch -L . -f batch-byte-compile *.el
}

package() {
  cd auto-complete-${pkgver}
  install -d "$pkgdir"/usr/share/emacs/site-lisp/auto-complete
  install -m644 *.el{c,} "$pkgdir"/usr/share/emacs/site-lisp/auto-complete/
}