summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorStefan Husmann2017-02-25 16:07:34 +0100
committerStefan Husmann2017-02-25 16:07:34 +0100
commit733618a1b1a68213126091452cfa7d3933045ed8 (patch)
tree5d625c36c2ce7aa60171b4a98a45f6ae8b2dad40 /PKGBUILD
parent31346cc550dc0b572282d092d159972f402e081e (diff)
downloadaur-733618a1b1a68213126091452cfa7d3933045ed8.tar.gz
simplified pkgver function
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 2 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 76e7a2aff0f..35f1b4ba200 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@
pkgname=stumpwm-git
_pkgname=stumpwm
-pkgver=1.0.0.r71.g183d8e2
+pkgver=1.0.0.71.g183d8e2
pkgrel=1
pkgdesc="A tiling, keyboard-driven window manager written in common lisp"
arch=('i686' 'x86_64')
@@ -37,10 +37,7 @@ options=(!strip) # Thanks to sidereus for pointing this out
pkgver() {
cd ${srcdir}/${_pkgname}
- ( set -o pipefail
- git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
- )
+ git describe --long --tags|tr - .
}
_contribdest=/usr/share/stumpwm/contrib