summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 37650c35e9662603f315253b5b9381c438000672 (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
# Maintainer: Alexander Bocken <alexander@bocken.org>
pkgname=bibel-git
pkgver=r53.a55eb0c
pkgrel=1
pkgdesc="Read the the German Catholic Einheitsübersetzung, with annotations, from your terminal"
arch=(any)
depends=(bash)
makedepends=('git')
url="https://github.com/AlexBocken/bibel"
license=('custom:Public Domain')
source=('bibel::git+https://github.com/AlexBocken/bibel.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
	cd "$srcdir/${pkgname%-git}"
	make
}

package() {
	cd "$srcdir/${pkgname%-git}"
	install -Dm755 bibel $pkgdir/usr/bin/bibel
	install -Dm644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE
}