diff options
author | Daniel Albers | 2020-03-12 01:10:17 +0100 |
---|---|---|
committer | Daniel Albers | 2020-03-12 01:10:17 +0100 |
commit | 73181f0834ea9c0dcfe24512e6fb0c89680ccb83 (patch) | |
tree | 273b79533145cd1cdf4da6fc275544978bc6987e | |
parent | 7a08ebed5694aac997910f81894f217a2a05e861 (diff) | |
download | aur-73181f0834ea9c0dcfe24512e6fb0c89680ccb83.tar.gz |
Use tag based versioning
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 6 insertions, 8 deletions
@@ -1,9 +1,7 @@ -# Generated by mksrcinfo v8 -# Fri Jun 24 01:31:23 UTC 2016 pkgbase = kdbusaddons-git pkgdesc = Addons to QtDBus - pkgver = r90.e9c8580 - pkgrel = 2 + pkgver = v4.100.0.rc1.r233.gde0c9db + pkgrel = 1 url = https://projects.kde.org/projects/frameworks/kdbusaddons arch = i686 arch = x86_64 @@ -2,8 +2,8 @@ # Contributor: Andrea Scarpino <andrea@archlinux.org> pkgname=kdbusaddons-git -pkgver=r90.e9c8580 -pkgrel=2 +pkgver=v4.100.0.rc1.r233.gde0c9db +pkgrel=1 pkgdesc='Addons to QtDBus' arch=('i686' 'x86_64') url='https://projects.kde.org/projects/frameworks/kdbusaddons' @@ -17,8 +17,8 @@ source=('git://anongit.kde.org/kdbusaddons.git') md5sums=('SKIP') pkgver() { - cd kdbusaddons - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd ${pkgname%-git} + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { |