summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 31ff0584d87bcb983425915ac12327d241f960cc (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
# Maintainer: sballert <sballert@posteo.de>

pkgname=emacs-avy-git
pkgver=r247.157486a
pkgrel=1
pkgdesc="Jump to things in Emacs tree-style"
url="https://github.com/abo-abo/avy"
arch=('any')
license=('GPL3')
depends=('emacs')
makedepends=('git')
provides=('emacs-avy')
conflicts=('emacs-avy')
source=("git+https://github.com/abo-abo/avy.git")
sha256sums=('SKIP')
_gitname="avy"

pkgver() {
  cd "$_gitname"
  printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}

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

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