summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKozak Ivan2020-10-22 09:45:39 +0400
committerKozak Ivan2020-10-22 09:45:39 +0400
commita7addae53b44e295d49123aba75dd54e17df8841 (patch)
treea8723865ad406efb72f8e05f8bf03215f1b2bb86
parent4e23960a3c68d5e7d8713b015a8a3b4ff32dd4a0 (diff)
downloadaur-a7addae53b44e295d49123aba75dd54e17df8841.tar.gz
switch to git tags
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD11
2 files changed, 9 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4cf023d08cf..0beae648e77 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = wlsunset-git
pkgdesc = Day/night gamma adjustments for Wayland
- pkgver = r16.ef117f0
+ pkgver = 0.1.0.r0.0569fb4
pkgrel = 1
url = https://git.sr.ht/~kennylevinsen/wlsunset
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index d9f4d4ebc03..3bae187c77f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
pkgname=wlsunset-git
-pkgver=r16.ef117f0
+pkgver=0.1.0.r0.0569fb4
pkgrel=1
pkgdesc="Day/night gamma adjustments for Wayland"
arch=('x86_64')
@@ -13,8 +13,13 @@ source=("$pkgname::git+$url")
sha256sums=('SKIP')
pkgver() {
- cd "$pkgname"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "$pkgname"
+
+# Git, tags available
+ printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+
+# Git, no tags available
+# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {