diff options
author | Daniel Albers | 2020-03-12 01:33:47 +0100 |
---|---|---|
committer | Daniel Albers | 2020-03-12 01:33:47 +0100 |
commit | ef8c8666e68302e1d00ff39ae5236ec3373cb4b5 (patch) | |
tree | d9b69460767653b289be9eeb743e69028ffb6ffe /PKGBUILD | |
parent | 6d199a16f15b4aefaa5c4ccab30d8422cdb5fbb3 (diff) | |
download | aur-ef8c8666e68302e1d00ff39ae5236ec3373cb4b5.tar.gz |
Use tag based versioning
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,8 +1,8 @@ # Maintainer: Andrea Scarpino <andrea@archlinux.org> pkgname=solid-git -pkgver=r196.25657e3 -pkgrel=2 +pkgver=v4.100.0.rc1.r389.g8dfb727 +pkgrel=1 pkgdesc='Solid' arch=('i686' 'x86_64') url='https://projects.kde.org/projects/frameworks/solid' @@ -16,8 +16,8 @@ source=('git://anongit.kde.org/solid.git') md5sums=('SKIP') pkgver() { - cd solid - 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() { |