summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 069163d84833f1d68fd040c8c174e7a716df1849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Alex Whitt <alex.joseph.whitt@gmail.com>

pkgname=emacs-ag
pkgver=0.47
pkgrel=1
pkgdesc="An Emacs frontend to The Silver Searcher"
arch=(any)
url="https://github.com/Wilfred/ag.el"
license=('GPL3')
depends=('emacs' 'emacs-dash' 'emacs-s')
source=("https://github.com/Wilfred/ag.el/archive/${pkgver}.tar.gz")
sha256sums=('SKIP')

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

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