diff options
author | Tmplt | 2016-02-06 18:56:09 +0100 |
---|---|---|
committer | Tmplt | 2016-02-06 18:56:09 +0100 |
commit | ae118412da36ff5327864aaefc3af58d6dac8730 (patch) | |
tree | f2f51c4fc732befd110cb9f9cd0b39a443310fca /PKGBUILD | |
parent | 218f8062dd269dcd144475b155afeec839d56ce9 (diff) | |
download | aur-ae118412da36ff5327864aaefc3af58d6dac8730.tar.gz |
This should fix it
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,7 +3,7 @@ pkgname=lemonbar-sm-git _pkgname=lemonbar -pkgver=v1.0.157.gf1f885a +pkgver=1.0.r157.gf1f885a pkgrel=1 pkgdesc="Fork of lemonbar, with xft support and the ability to select monitor." arch=('i686' 'x86_64') @@ -19,7 +19,7 @@ sha256sums=('SKIP') pkgver() { cd "$_pkgname" - if git_version=$( git describe --long --tags 2>/dev/null ); then + if git_version=$( git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/; s/-/./g' 2>/dev/null ); then IFS='-' read last_tag tag_rev commit <<< "$git_version" printf '%s.r%s.%s' "$last_tag" "$tag_rev" "$commit" else |