diff options
author | Llewelyn Trahaearn | 2016-09-16 09:40:11 -0700 |
---|---|---|
committer | Llewelyn Trahaearn | 2016-09-16 09:40:11 -0700 |
commit | 58fdc07b492428adad39e1117ac50f1b2b09dd34 (patch) | |
tree | e211cba7dabb3a8763950b2d476bfbc906fc25f4 | |
parent | 9be29037643295e5529bdf2e1c44017626538346 (diff) | |
download | aur-58fdc07b492428adad39e1117ac50f1b2b09dd34.tar.gz |
Function order revised to reflect changes to their order of execution by makepkg. Include a remote sync in prepare to update assets during dirty builds.
-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))" |