summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ec289964c7817b4bfa40751c0292a3af557edc5c (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
33
# Contributor: sballert <sballert@posteo.de>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=emacs-hydra-git
pkgver=0.14.0r38.g9c4a471
pkgrel=1
pkgdesc="Make Emacs bindings that stick around"
url="https://github.com/abo-abo/hydra"
arch=('any')
license=('GPL3')
depends=('emacs')
makedepends=('git')
provides=('emacs-hydra')
conflicts=('emacs-hydra')
source=("git+https://github.com/abo-abo/hydra.git")
sha256sums=('SKIP')
_gitname="hydra"

pkgver() {
  cd "$_gitname"
  git describe --tags | sed 's+-+r+' | tr - .
}

build() {
  cd "$_gitname"
  make clean test compile
}

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