diff options
author | Daniel Albers | 2020-03-12 01:27:24 +0100 |
---|---|---|
committer | Daniel Albers | 2020-03-12 01:27:24 +0100 |
commit | 6f838da614dfba91cd9a4a93897567c758809001 (patch) | |
tree | 63a922da995d71601f25a927c3f9c12ac124caa9 | |
parent | 0506124640c75a7bb827343d25c9b3d31ff5fe8b (diff) | |
download | aur-6f838da614dfba91cd9a4a93897567c758809001.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:25 UTC 2016 pkgbase = knotifications-git pkgdesc = KNotifications - pkgver = r182.50c0a31 - pkgrel = 2 + pkgver = v4.100.0.rc1.r426.g1b93a36 + pkgrel = 1 url = https://projects.kde.org/projects/frameworks/knotifications arch = i686 arch = x86_64 @@ -1,8 +1,8 @@ # Maintainer: Andrea Scarpino <andrea@archlinux.org> pkgname=knotifications-git -pkgver=r182.50c0a31 -pkgrel=2 +pkgver=v4.100.0.rc1.r426.g1b93a36 +pkgrel=1 pkgdesc='KNotifications' arch=(i686 x86_64) url='https://projects.kde.org/projects/frameworks/knotifications' @@ -16,8 +16,8 @@ source=('git://anongit.kde.org/knotifications.git') md5sums=('SKIP') pkgver() { - cd knotifications - 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() { |