summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 79763c87149..f83109b083a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 965fadc10fb..1b3b47bf3aa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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() {