git » range-v3-git.git » commit 1c78acc

Use semantic versioning (as per verri's suggestion)

author Theodoros Theodoridis
2017-07-10 11:50:58 UTC
committer Theodoros Theodoridis
2017-07-10 11:50:58 UTC
parent 5f71db3f0dcf9f1cab424be62f4ac0cc6c53fa78

Use semantic versioning (as per verri's suggestion)

.SRCINFO +2 -2
PKGBUILD +3 -3

diff --git a/.SRCINFO b/.SRCINFO
index 8720853..ed2a260 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = range-v3-git
 	pkgdesc = Eric Niebler' C++ ranges library.
-	pkgver = r1208.623e87d5
-	pkgrel = 3
+	pkgver = 0.3.0.r5.gfc333d91
+	pkgrel = 1
 	url = https://github.com/ericniebler/range-v3
 	arch = any
 	license = custom
diff --git a/PKGBUILD b/PKGBUILD
index fcb9259..2851980 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
 # Maintainer: Theodoros Theodoridis <theodoridisgr@gmail.com>
 
 pkgname=range-v3-git
-pkgver=r1208.623e87d5
-pkgrel=3
+pkgver=0.3.0.r5.gfc333d91
+pkgrel=1
 pkgdesc="Eric Niebler' C++ ranges library."
 arch=('any')
 url='https://github.com/ericniebler/range-v3'
@@ -13,7 +13,7 @@ md5sums=('SKIP')
 
 pkgver() {
   cd range-v3
-  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
 }
 
 package() {