summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJoão Figueiredo2021-07-19 18:42:56 +0100
committerJoão Figueiredo2021-07-19 18:42:56 +0100
commite9e29ed572b70be2a2aaef78f5931c3764dd58f6 (patch)
tree03b809b938506109837ce1aade76679238a19870 /PKGBUILD
parent7ecce89a69899d633de3f1e4fba369b1fda59a9a (diff)
downloadaur-e9e29ed572b70be2a2aaef78f5931c3764dd58f6.tar.gz
Smarter pkgver()
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3ca63b0e8ee..9e8b25f19ea 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
# Contributor: Antonio Rojas <arojas@archlinux.org>
pkgname=kidentitymanagement-git
-pkgver=5.17.40_r3782.g28881265
+pkgver=5.18.40_r3795.g5a86412f
pkgrel=1
pkgdesc="KDE PIM libraries"
arch=($CARCH)
@@ -20,7 +20,8 @@ sha256sums=('SKIP')
pkgver() {
cd ${pkgname%-git}
- _ver="$(grep -m1 'set(PIM_VERSION' CMakeLists.txt | cut -d '"' -f2 | tr - .)"
+ _ver="$(grep -m1 'set(RELEASE_SERVICE_VERSION' CMakeLists.txt | cut -d '"' -f2 | tr - .)"
+ _ver=${_ver:-"$(grep -m1 'set(PIM_VERSION' CMakeLists.txt | cut -d '"' -f2 | tr - .)"}
echo "${_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}