summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMárton Szabó2018-03-12 11:08:26 +0100
committerMárton Szabó2018-03-12 11:08:26 +0100
commit8ea65ff1ff21c73c7c939a1f0de785fa01bde9b6 (patch)
tree7bf1f72b6ce0b13f1e447aaa5eaccfaefe73989e
parent5cb25f6d5028e43a7fb2656cb24204bbf063015e (diff)
downloadaur-8ea65ff1ff21c73c7c939a1f0de785fa01bde9b6.tar.gz
Added pkgver(), version 7.0.1
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
2 files changed, 9 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 777e31f70828..d988cfe14aed 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = tokei-git
pkgdesc = A blazingly fast CLOC(Count Lines Of Code) program
- pkgver = 6.0.1
+ pkgver = v7.0.1.r17.16d49fc
pkgrel = 1
url = https://github.com/Aaronepower/tokei
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 174900c6ff16..f13592af7270 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,7 @@
-# Maintainer: Márton Szabó <notramo@vipmail.hu>
+# Maintainer: Márton Szabó < echo "bm90cmFtb0B2aXBtYWlsLmh1Cg=="|base64 -d >
+
pkgname=tokei-git
-pkgver=6.0.1
+pkgver=v7.0.1.r17.16d49fc
pkgrel=1
pkgdesc='A blazingly fast CLOC(Count Lines Of Code) program'
arch=('i686' 'x86_64')
@@ -12,6 +13,11 @@ conflicts=('tokei')
source=("git+https://github.com/Aaronepower/tokei")
sha512sums=(SKIP)
+pkgver() {
+ cd "${srcdir}/tokei"
+ printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+}
+
build() {
cd "${srcdir}/tokei"