diff options
author | Luca Weiss | 2016-04-12 15:49:38 +0200 |
---|---|---|
committer | Luca Weiss | 2016-04-12 15:49:38 +0200 |
commit | 1f1bd81080118007f0958b08dd772d0173082719 (patch) | |
tree | 5903ecc3877e0c1759e3ddf1c7ffaa7137c4ec0e /PKGBUILD | |
parent | d3e92cfc6e5929a83488c9d80c74f8860afd7ebb (diff) | |
download | aur-1f1bd81080118007f0958b08dd772d0173082719.tar.gz |
fix pkgver to use the git rev.no
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2,7 +2,7 @@ pkgname=azure-vhd-utils-for-go-git _pkgname=azure-vhd-utils-for-go -pkgver=2016.04.10 +pkgver=r21.7db4795 pkgrel=1 pkgdesc="Azure VHD utilities for Go." arch=('x86_64' 'i686') @@ -12,6 +12,11 @@ makedepends=('go' 'git') options=('!strip' '!emptydirs') _gourl=github.com/Microsoft/azure-vhd-utils-for-go +pkgver() { + cd $srcdir/build/src/$_gourl/ + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + build() { export GOPATH="$srcdir/build" go get -fix -v -x ${_gourl} |