diff options
author | Christian Hesse | 2016-05-28 21:54:54 +0200 |
---|---|---|
committer | Christian Hesse | 2016-05-28 21:54:54 +0200 |
commit | 3e8816d4577c79dcf2a06c290503f4b91cc051ee (patch) | |
tree | 9035fc2568285d34f4cc862b8df88ec29d3acd10 /PKGBUILD | |
parent | 8a8c37fc8e6226b2334c008800a1184986a984cd (diff) | |
download | aur-3e8816d4577c79dcf2a06c290503f4b91cc051ee.tar.gz |
commit putty-git 0.63.r847.g5da8ec5-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -2,7 +2,7 @@ # Contributor: Eric BĂ©langer <eric@archlinux.org> ([extra] package) pkgname=putty-git -pkgver=0.63.r301.g35fde00 +pkgver=0.63.r847.g5da8ec5 pkgrel=1 pkgdesc="A terminal integrated SSH/Telnet client - git checkout" arch=('i686' 'x86_64') @@ -19,9 +19,14 @@ pkgver() { cd putty/ if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then - echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")" + printf '%s.r%s.g%s' \ + "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \ + "$(git rev-list --count ${GITTAG}..)" \ + "$(git log -1 --format='%h')" else - echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")" + printf '0.r%s.g%s' \ + "$(git rev-list --count master)" \ + "$(git log -1 --format='%h')" fi } |