diff options
author | Johannes Löthberg | 2016-10-17 14:06:28 +0200 |
---|---|---|
committer | Johannes Löthberg | 2016-10-17 14:07:31 +0200 |
commit | b7de0964409f080fced61385a5fe37037f37f5d2 (patch) | |
tree | c759d1de7983f477e4351fc9c023d68a7aee50da | |
parent | aced0c7127dab903ca6fb23383aeae5c8896b7c8 (diff) | |
download | aur-b7de0964409f080fced61385a5fe37037f37f5d2.tar.gz |
Switch to git-describe for pkgver
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 3 insertions, 5 deletions
@@ -1,8 +1,6 @@ -# Generated by mksrcinfo v8 -# Thu Oct 13 02:14:04 UTC 2016 pkgbase = pacman-contrib-git pkgdesc = pacman contributions (Git version) - pkgver = r26.8effb41 + pkgver = 0.0.1.r1.ga2b1db8 pkgrel = 1 url = https://git.archlinux.org/pacman-contrib.git arch = any @@ -2,7 +2,7 @@ # Maintainer: Johannes Löthberg <johannes@kyriasis.com> pkgname=pacman-contrib-git -pkgver=r26.8effb41 +pkgver=0.0.1.r1.ga2b1db8 pkgrel=1 pkgdesc='pacman contributions (Git version)' url=https://git.archlinux.org/pacman-contrib.git @@ -15,7 +15,7 @@ sha512sums=('SKIP') pkgver() { cd ${pkgname%-*} - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + git describe --long --tags | sed -r 's/^v//; s/([^-]*-g)/r\1/; s/-/./g' } build() { |