diff options
author | Llewelyn Trahaearn | 2015-07-17 18:42:46 -0700 |
---|---|---|
committer | Llewelyn Trahaearn | 2015-07-17 18:42:46 -0700 |
commit | 8a96ad64e43b81a2e64efc3302fadf000573f0f9 (patch) | |
tree | 795dffa775bbce627cc79afcd0c0a33029144a7a /PKGBUILD | |
parent | 3e590fe87ecaa66c5dd2cda561f68f1d016c8a0d (diff) | |
download | aur-8a96ad64e43b81a2e64efc3302fadf000573f0f9.tar.gz |
Resolve issues where incorrect version info could be displayed.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -3,7 +3,7 @@ # Contributor: Christopher Krooß <didi2002 at web dot de> pkgname=gnome-shell-extension-dash-to-dock-git -pkgver=44.r29.gaa1720b +pkgver=46.r10.gaa1720b pkgrel=1 pkgdesc="Extends the dash, transforming it into an intellihide dock." arch=('any') @@ -16,17 +16,18 @@ conflicts=('gnome-shell-extensions-git' 'gnome-shell-extension-dash-to-dock') install="gschemas.install" source=("${pkgname}::git+https://github.com/micheleg/dash-to-dock.git") sha512sums=('SKIP') +_branch=master pkgver() { cd "${srcdir}/${pkgname}" + git checkout ${_branch} --quiet ( set -o pipefail - git describe --long 2>/dev/null | sed 's/^extensions.gnome.org.v//;s/\([^-]*-g\)/r\1/;s/-/./g' || + git describe --long --tags 2>/dev/null | sed 's/^extensions.gnome.org.v//;s/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } prepare() { - _branch=master cd "${srcdir}/${pkgname}" git checkout ${_branch} sed -i 's/INSTALLBASE = ~\/.local\/share\/gnome-shell\/extensions/INSTALLBASE = ${DESTDIR}/' Makefile |