summaryrefslogtreecommitdiff
path: root/pcr/guile-git-lib/PKGBUILD
blob: c0ee4e2b026dc546ee0c719159d13e3457536d2d (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
34
35
36
37
38
39
40
41
42
# Maintainer (AUR): lantw44 (at) gmail (dot) com

# parabola changes and rationale:
#  no changes.

pkgname=guile-git-lib
_pkgname=guile-git
pkgver=0.0+170+g951a32c
pkgrel=1
pkgdesc='Guile bindings for libgit2'
arch=('x86_64' 'i686' 'armv7h')
url="https://gitlab.com/guile-git/guile-git"
license=('GPL3')
depends=('guile' 'guile-bytestructures' 'libgit2')
makedepends=('git')
_commit=951a32c56cc4d80f8836e3c7394783e69c1fcbad
source=("git+https://gitlab.com/${_pkgname}/${_pkgname}.git#commit=${_commit}")
sha256sums=('SKIP')

pkgver() {
	cd ${srcdir}/${_pkgname}
	printf "0.0+%s+g%s" \
		"$(git rev-list HEAD | wc -l)" \
		"$(git rev-list --max-count=1 HEAD | cut -c 1-7)"
}

build() {
	cd ${srcdir}/${_pkgname}
	./bootstrap
	./configure --prefix=/usr
	make
}

check() {
	cd ${srcdir}/${_pkgname}
	make check || true # tests fail on i686
}

package() {
	cd ${srcdir}/${_pkgname}
	make DESTDIR="${pkgdir}" install
}