diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 8 insertions, 8 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Mon Jun 13 20:22:51 UTC 2016 +# Fri Sep 16 16:39:59 UTC 2016 pkgbase = gnome-shell-extension-freon-git pkgdesc = Displays: CPU temperature, HDD/SSD temperature, video card temperature (nVidia/Catalyst), voltage and fan RPM in a GNOME Shell top bar pop-down. pkgver = 20.r0.gf89ea98 @@ -20,20 +20,20 @@ source=("${pkgname}::git+https://github.com/UshakovVasilii/gnome-shell-extension sha512sums=('SKIP') _branch=master +prepare() { + cd "${pkgname}" + git checkout ${_branch} + git pull +} + pkgver() { - cd "${srcdir}/${pkgname}" - git checkout ${_branch} --quiet + cd "${pkgname}" ( set -o pipefail git describe --long --tags 2>/dev/null | sed 's/^EGO.//;s/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } -prepare() { - cd "${srcdir}/${pkgname}" - git checkout ${_branch} -} - package() { # Locate the extension. cd "$(dirname $(find -name 'metadata.json' -print -quit))" |