summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTheodoros Theodoridis2016-12-28 02:54:47 +0200
committerTheodoros Theodoridis2016-12-28 02:54:47 +0200
commit5f71db3f0dcf9f1cab424be62f4ac0cc6c53fa78 (patch)
tree08d58024dafe604476365b93901b6aebc6b39abd /PKGBUILD
parentbb541eb1a473badbd76be7c59aea235c33ed6f9c (diff)
downloadaur-5f71db3f0dcf9f1cab424be62f4ac0cc6c53fa78.tar.gz
Switch to a git-based pkgver()
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index dd20016a6ac..fcb9259f27a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"