summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorkodehawa2021-01-16 11:09:06 -0300
committerkodehawa2021-01-16 11:09:06 -0300
commitdc86cefa5b04bbfaf2bcae53bfa76a09dce2c0c2 (patch)
treeb5b7bae9b0056df2b377c1836202adf5a037cfe1 /PKGBUILD
parent5155292e3f99e6aa20d17d503ddf9ee9eb3b44ee (diff)
downloadaur-qqc2-desktop-style-git.tar.gz
fix versioning part 2
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c031544aafa..6caa29cfc11 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=qqc2-desktop-style
pkgname=qqc2-desktop-style-git
-pkgver=v5.78.0.r4.g64d900d
+pkgver=5.79.0.r435.g64d900d
pkgrel=1
pkgdesc='A style for Qt Quick Controls 2 to make it follow your desktop theme - Git Version'
arch=(x86_64)
@@ -19,7 +19,8 @@ validpgpkeys=('53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB') # David Faure <faure@k
pkgver() {
cd $_pkgname
- git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ _ver="$(cat CMakeLists.txt | grep -m1 'set(KF5_VERSION' | cut -d '"' -f2 | tr - .)"
+ echo "${_ver}.r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}
build() {