summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2021-09-25 14:36:50 +0300
committerYigit Sever2021-09-25 14:36:50 +0300
commit9af3c4795b8f9e93a5a98122ae37088cd4fb0cb4 (patch)
tree4ab55dc8045b6219fc53851675461d0a7c40ceba
parent15b4f5dbe0d6489fa0902d8223330ff82ac551f4 (diff)
downloadaur-9af3c4795b8f9e93a5a98122ae37088cd4fb0cb4.tar.gz
Change pkgver() to use annotated tags
As described here: https://wiki.archlinux.org/title/VCS_package_guidelines#Git
-rw-r--r--PKGBUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ddbacc51b78..be8b2740453 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,7 +19,9 @@ sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/elementary-icon-theme"
- echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+ # https://wiki.archlinux.org/title/VCS_package_guidelines#Git
+ # Upstream has annotated tags
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {