summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d3838383807cefb00c45a2e09551625397f152c2 (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
# Maintainer: Alex Whitt <alex.joseph.whitt@gmail.com>

_pkgsrcname=hydra
_pkgmaintainer=abo-abo
_pkgdestdirname=hydra
_versionprefix=
pkgver=0.14.0
pkgrel=1
pkgdesc="Make Emacs bindings that stick around"
pkgname=emacs-${_pkgdestdirname}
arch=(any)
url="https://github.com/${_pkgmaintainer}/${_pkgsrcname}"
license=('GPL3')
depends=('emacs')
optdepends=('emacs-org-mode: Comes with an org-mode export widget')
source=("$pkgname-$pkgver.tar.gz::https://github.com/${_pkgmaintainer}/${_pkgsrcname}/archive/${_versionprefix}${pkgver}.tar.gz")
sha256sums=('a8664c86a5f48af37e47983829d653b31114eade87a2b6f234107eeedc980421')
install=${pkgname}.install

build() {
  cd "${srcdir}/${_pkgsrcname}-${pkgver}"
  emacs -q --no-splash -batch -L . -f batch-byte-compile {hydra-ox,hydra,lv}.el
}

package() {
  cd "${srcdir}/${_pkgsrcname}-${pkgver}"
  install -d "${pkgdir}/usr/share/emacs/site-lisp/${_pkgdestdirname}/"
  install -m644 {hydra-ox,hydra,lv}.el{c,} "${pkgdir}/usr/share/emacs/site-lisp/${_pkgdestdirname}/"
}