summaryrefslogtreecommitdiff
path: root/pcr/guile-bytestructures/PKGBUILD
blob: cb661055085045a5526efd3d07725986959a6aa9 (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
# Maintainer (AUR): lantw44 (at) gmail (dot) com

# parabola changes and rationale:
#  no changes.

pkgname=guile-bytestructures
_pkgname=scheme-bytestructures
pkgver=0.0+250+g7ed31b1
pkgrel=1
pkgdesc='Structured access library to bytevector contents for Guile'
arch=('x86_64' 'i686' 'armv7h')
url="https://github.com/TaylanUB/scheme-bytestructures"
license=('GPL3')
depends=('guile')
makedepends=('git')
_commit=7ed31b1e93a4bf8960f1d4aedbea84f4f594af6d
source=("git+https://github.com/TaylanUB/${_pkgname}#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}
	autoreconf -fi
	./configure --prefix=/usr
	make
}

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