summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKozak Ivan2020-10-22 09:45:39 +0400
committerKozak Ivan2020-10-22 09:45:39 +0400
commita7addae53b44e295d49123aba75dd54e17df8841 (patch)
treea8723865ad406efb72f8e05f8bf03215f1b2bb86 /PKGBUILD
parent4e23960a3c68d5e7d8713b015a8a3b4ff32dd4a0 (diff)
downloadaur-a7addae53b44e295d49123aba75dd54e17df8841.tar.gz
switch to git tags
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 8 insertions, 3 deletions
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() {