summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMichael Serajnik2020-01-31 02:24:52 +0100
committerMichael Serajnik2020-01-31 02:24:52 +0100
commita8749df696c17ac2498c49f92d619c35f9156fa1 (patch)
tree9997796ef89881b0349149ce6351997476dc7dbb /PKGBUILD
parent79bfca966cefa57a94159904e4db90d69abd556a (diff)
downloadaur-a8749df696c17ac2498c49f92d619c35f9156fa1.tar.gz
fix: use git tags for pkgver
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 972d5508a00..14de8b89b37 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: Michael Serajnik <ms dot mserajnik dot at>
pkgname=traffictoll-git
_pkgname=TrafficToll
-pkgver=r35.0add8b6
-pkgrel=2
+pkgver=1.0.2.r0.g0add8b6
+pkgrel=1
pkgdesc="NetLimiter-like traffic shaping for Linux"
arch=('any')
url="https://github.com/cryzed/${_pkgname}"
@@ -15,7 +15,7 @@ md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
- 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"
}
prepare() {