summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJoão Figueiredo2021-07-19 18:41:23 +0100
committerJoão Figueiredo2021-07-19 18:41:23 +0100
commita24758de13ff00d7015f623148aa5bdb0afd691b (patch)
tree3d118f2a8ef48077844e007f863e6b29261aea14 /PKGBUILD
parentfcfdea51b2896c505da002b336bd6a5691afbdfc (diff)
downloadaur-a24758de13ff00d7015f623148aa5bdb0afd691b.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 2c69fdc9b24..f896e2ff482 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
pkgname=akonadi-search-git
-pkgver=5.17.40_r1091.gb2d99d7
+pkgver=5.18.40_r1107.g26c21d0
pkgrel=1
pkgdesc="Libraries and daemons to implement searching in Akonadi"
url='https://kontact.kde.org'
@@ -19,7 +19,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)"
}