summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFlorian Preinstorfer2022-05-26 08:32:00 +0200
committerFlorian Preinstorfer2022-05-26 08:32:00 +0200
commit61d82c38c84334c040ae0a2acc43c3589c95b5ed (patch)
tree10276f080bbffa630035325553538d7d15a6f67b /PKGBUILD
parent4eca22cd0bfc3639a89db65324e2386466874891 (diff)
downloadaur-61d82c38c84334c040ae0a2acc43c3589c95b5ed.tar.gz
Properly calculate the version
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b80bce8317de..32724c1c63c0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,8 +5,8 @@
pkgname=vit-git
_pkgname="${pkgname%-git}"
-pkgver=r710.7a05bc2
-pkgrel=2
+pkgver=2.2.0.r18.ge37a75d
+pkgrel=1
pkgdesc="Visual Interactive Taskwarrior full-screen terminal interface (GIT version)"
arch=('any')
url='https://github.com/vit-project/vit'
@@ -24,7 +24,7 @@ sha512sums=('SKIP')
pkgver() {
cd "${_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() {