summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdgard Castro2017-01-26 13:32:57 -0200
committerEdgard Castro2017-01-26 13:32:57 -0200
commite1a76e62306e19b4372426230d452604b2930e6f (patch)
tree65559732a726a79bef1a228bf9366609bc669700
parent08cbf3162fca48b701f056ee4b1a6fd504085026 (diff)
downloadaur-e1a76e62306e19b4372426230d452604b2930e6f.tar.gz
change pkgver git tag parsing
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 51df1b118c3..243f7e4bc2c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = autorandr-git
pkgdesc = Auto-detect the connect display hardware and load the appropiate X11 setup using xrandr. Formerly autodisper. No disper support.
- pkgver = r244.9b1ef49
+ pkgver = 1.0.r16.g855c18b
pkgrel = 1
url = https://github.com/phillipberndt/autorandr
install = autorandr-git.install
diff --git a/PKGBUILD b/PKGBUILD
index f69d5e7c413..23342a0c5bc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
# Contributor: wertarbyte (original author of auto-disper and autorandr)
pkgname=autorandr-git
-pkgver=r244.9b1ef49
+pkgver=1.0.r16.g855c18b
pkgrel=1
pkgdesc="Auto-detect the connect display hardware and load the appropiate X11 setup using xrandr. Formerly autodisper. No disper support."
arch=('any')
@@ -38,7 +38,7 @@ sha256sums=('SKIP'
pkgver() {
cd "${srcdir}/${pkgname}"
( set -o pipefail
- git describe --long --tag | sed -r 's/([^-]*-g)/r\1/;s/-/./g' ||
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
) 2>/dev/null
}