diff options
author | Theodoros Theodoridis | 2016-12-28 02:54:47 +0200 |
---|---|---|
committer | Theodoros Theodoridis | 2016-12-28 02:54:47 +0200 |
commit | 5f71db3f0dcf9f1cab424be62f4ac0cc6c53fa78 (patch) | |
tree | 08d58024dafe604476365b93901b6aebc6b39abd | |
parent | bb541eb1a473badbd76be7c59aea235c33ed6f9c (diff) | |
download | aur-5f71db3f0dcf9f1cab424be62f4ac0cc6c53fa78.tar.gz |
Switch to a git-based pkgver()
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 9 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = range-v3-git pkgdesc = Eric Niebler' C++ ranges library. - pkgver = 20161228 - pkgrel = 2 + pkgver = r1208.623e87d5 + pkgrel = 3 url = https://github.com/ericniebler/range-v3 arch = any license = custom @@ -1,8 +1,8 @@ # Maintainer: Theodoros Theodoridis <theodoridisgr@gmail.com> pkgname=range-v3-git -pkgver=20161228 -pkgrel=2 +pkgver=r1208.623e87d5 +pkgrel=3 pkgdesc="Eric Niebler' C++ ranges library." arch=('any') url='https://github.com/ericniebler/range-v3' @@ -11,6 +11,11 @@ makedepends=('git') source=("git+https://github.com/ericniebler/range-v3.git") md5sums=('SKIP') +pkgver() { + cd range-v3 + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + package() { mkdir -p "$pkgdir/usr/include" cp -R "$srcdir/range-v3/include/"* "$pkgdir/usr/include" |