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

pkgname=emacs-ag-git
pkgver=0.47.r50.gbd81d68
pkgrel=1
pkgdesc="An Emacs frontend to The Silver Searcher (binary name ag)"
arch=('any')
url="https://github.com/Wilfred/ag.el"
license=('GPL3')
depends=('emacs' 'emacs-dash' 'emacs-s')
makedepends=('git')
provides=('emacs-ag')
conflicts=('emacs-ag')
source=("git+${url}.git")
md5sums=('SKIP')

pkgver() {
  cd ag.el
  git describe --tags | sed 's+-+.r+' | tr - .
}

build() {
  cd ag.el
  emacs -q --no-splash -batch -L . -f batch-byte-compile *.el
}

package() {
  cd ag.el
  mkdir -p "$pkgdir"/usr/share/emacs/site-lisp
  install -m644 *.el{c,} "$pkgdir"/usr/share/emacs/site-lisp
}