diff options
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 12 insertions, 7 deletions
@@ -1,12 +1,11 @@ pkgbase = guile-bytestructures-git pkgdesc = Structured access library to bytevector contents for Guile. - pkgver = latest + pkgver = r306.a6d5d25 pkgrel = 1 url = https://github.com/TaylanUB/scheme-bytestructures - arch = any + arch = x86_64 license = GPL3 - makedepends = autoconf - makedepends = automake + makedepends = git depends = guile provides = guile-bytestructures conflicts = guile-bytestructures @@ -5,20 +5,26 @@ _checkoutdir='scheme-bytestructures' _pkgname='guile-bytestructures' pkgname="${_pkgname}-git" -pkgver=latest +pkgver=r306.a6d5d25 pkgrel=1 pkgdesc='Structured access library to bytevector contents for Guile.' -arch=('any') +arch=('x86_64') url='https://github.com/TaylanUB/scheme-bytestructures' license=('GPL3') options=('!strip') depends=('guile') -makedepends=('autoconf' 'automake') +makedepends=('git') conflicts=("${pkgname%-git}") provides=("${pkgname%-git}") source=('git+https://github.com/TaylanUB/scheme-bytestructures.git') md5sums=('SKIP') +pkgver() { + # Number of revisions since beginning of the history. + cd "${_checkoutdir}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" +} + prepare() { cd "${_checkoutdir}" aclocal |