summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorantsa2021-05-07 08:28:59 +0200
committerantsa2021-05-07 08:28:59 +0200
commitfc919180ebbf682c87b4c08434361842cc764d85 (patch)
treead070b47932164398172ba0e2cd305de5961aae9
parent22a5bddbf4cc12f11b746a2ce1d3781852bf0cbe (diff)
downloadaur-fc919180ebbf682c87b4c08434361842cc764d85.tar.gz
use most recent annotated tag in pkgver
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 37cf4468fb7..fc3eeb92bed 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = materia-theme-git
pkgdesc = upstream git package for the Material Design-like flat theme for GTK4, GTK3, GTK2, Metacity, and GNOME-Shell.
- pkgver = r1614.37e2a7fb
+ pkgver = 20210322.r48.g34bffc10
pkgrel = 1
url = https://github.com/nana-4/materia-theme
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index e12d656d0f0..7c396ce3dc0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,10 +14,10 @@ replaces=()
source=(${pkgname}::git+https://github.com/nana-4/materia-theme.git)
sha256sums=('SKIP')
-pkgver=r1614.37e2a7fb
+pkgver=20210322.r48.g34bffc10
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'
}
pkgrel=1