summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChristian Boxdörfer2020-03-07 19:49:37 +0100
committerChristian Boxdörfer2020-03-07 19:49:37 +0100
commit89a5b7417776a0ca5ba06658b54e6c5872c8a611 (patch)
treec7b68f1218bb09e43d3b5231a895b5368337f04e /PKGBUILD
parentff072b4d58e88d39eefbb8b1530933d3b4178bc7 (diff)
downloadaur-89a5b7417776a0ca5ba06658b54e6c5872c8a611.tar.gz
use git tags for versioning (thanks yochananmarqos)
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 26bf9667c2f..9d5314c930c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,8 +14,8 @@ source=('git://github.com/cboxdoerfer/fsearch.git')
md5sums=('SKIP')
pkgver() {
- cd $_gitname
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "$srcdir/${pkgname%-git}"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {