diff options
-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:14 UTC 2016 pkgbase = kcompletion-git pkgdesc = KCompletion - pkgver = r100.3bff831 - pkgrel = 2 + pkgver = v4.100.0.rc1.r267.g897e77e + pkgrel = 1 url = https://projects.kde.org/projects/frameworks/kcompletion arch = i686 arch = x86_64 @@ -1,8 +1,8 @@ # Maintainer: Andrea Scarpino <andrea@archlinux.org> pkgname=kcompletion-git -pkgver=r100.3bff831 -pkgrel=2 +pkgver=v4.100.0.rc1.r267.g897e77e +pkgrel=1 pkgdesc='KCompletion' arch=('i686' 'x86_64') url='https://projects.kde.org/projects/frameworks/kcompletion' @@ -16,8 +16,8 @@ source=('git://anongit.kde.org/kcompletion.git') md5sums=('SKIP') pkgver() { - cd kcompletion - 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() { |