summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkRHYME72024-03-20 08:22:48 +0800
committerkRHYME72024-03-20 08:22:48 +0800
commit50922042145b26f08a1a7ebf8c7bb6d7a528689c (patch)
tree279fbf38ac6dcbe261de2888914ac43c975dcbca
parent72e7b1c706d5a498cfb9d039b101eb833af5663f (diff)
downloadaur-50922042145b26f08a1a7ebf8c7bb6d7a528689c.tar.gz
Fetch upstream
-rw-r--r--PKGBUILD6
1 files changed, 1 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8eb8273f05a8..a52e19c70aa1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,14 +11,10 @@ conflicts=("hyprdots-ctl")
source=("git+https://github.com/kRHYME7/Hyprdots-ctl.git")
md5sums=('SKIP')
-# pkgver() {
-# git -C "${srcdir}/Hyprdots-ctl" describe --long --tags --always | sed 's/\([^-]*-g[0-9a-f]*\)/r\1/;s/[-+]/./g'
-# }
-
pkgver() {
cd "${srcdir}/Hyprdots-ctl" || return
git fetch --tags
- local version=$(git describe --long --tags --always | sed 's/\([^-]*-g[0-9a-f]*\)/r\1/;s/[-+]/./g')
+ local version=$(git describe FETCH_HEAD | sed 's/\([^-]*-g[0-9a-f]*\)/r\1/;s/[-+]/./g')
echo "$version"
}