diff options
author | aksr | 2016-02-02 15:21:01 +0100 |
---|---|---|
committer | aksr | 2016-02-02 15:21:01 +0100 |
commit | 120a179838287593585ec724de1336f8c652b439 (patch) | |
tree | eb57fc906e86f768c3ff0878b4fb58b10da3a484 | |
parent | 7f7cc61782d0786608be1dd37fc73b04b1029ab5 (diff) | |
download | aur-strings-git.tar.gz |
Better way to get pkgver?
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -1,3 +1,5 @@ +# Generated by mksrcinfo v8 +# Tue Feb 2 14:20:54 UTC 2016 pkgbase = strings-git pkgdesc = A custom, Unicode-competent version of the BSD strings utility. pkgver = r9.c455a79 @@ -23,6 +23,7 @@ noextract=() _gourl=robpike.io/cmd/strings pkgver() { + GOPATH="$srcdir" go get -d ${_gourl} cd "$srcdir/src/${_gourl}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } |