diff options
author | Llewelyn Trahaearn | 2015-07-17 18:49:41 -0700 |
---|---|---|
committer | Llewelyn Trahaearn | 2015-07-17 18:49:41 -0700 |
commit | ae87cadb97ac06aab5dd0489beb820f698fbc0ee (patch) | |
tree | 95b1768957a1219906f7c702ce4052bbbd4993d0 | |
parent | 126b94d97a706afde82a6fd1339687b121a3f23a (diff) | |
download | aur-ae87cadb97ac06aab5dd0489beb820f698fbc0ee.tar.gz |
Resolve issues where incorrect version info could be displayed.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = gnome-shell-extension-lockkeys-git pkgdesc = Lock key state indicator for GNOME Shell. pkgver = r77.76ac557 - pkgrel = 2 + pkgrel = 3 url = https://github.com/kazysmaster/gnome-shell-extension-lockkeys install = gschemas.install arch = any @@ -4,7 +4,7 @@ pkgname=gnome-shell-extension-lockkeys-git pkgver=r77.76ac557 -pkgrel=2 +pkgrel=3 pkgdesc="Lock key state indicator for GNOME Shell." arch=('any') url="https://github.com/kazysmaster/gnome-shell-extension-lockkeys" @@ -16,9 +16,11 @@ conflicts=("${pkgname%-*}") install="gschemas.install" source=("${pkgname%-*}::git+https://github.com/kazysmaster/gnome-shell-extension-lockkeys.git") sha512sums=('SKIP') +_branch=master pkgver() { cd "${srcdir}/${pkgname%-*}" + git checkout ${_branch} --quiet ( set -o pipefail git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" @@ -26,7 +28,6 @@ pkgver() { } prepare() { - _branch=master cd "${srcdir}/${pkgname%-*}" git checkout ${_branch} } |