summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoraksr2016-02-02 15:33:49 +0100
committeraksr2016-02-02 15:33:49 +0100
commit0904c64203d4595688b71a921debca2f739ec08b (patch)
tree5e9ae88773b36c54e077f79335f6c898cc4e5196
parentf3ad68f3f6e91dc544a73cb8d92b3ea9d1aecb99 (diff)
downloadaur-hira-git.tar.gz
Better way to get pkgver?
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD1
2 files changed, 3 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 249fc7eecb7..92622c31ef3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by mksrcinfo v8
+# Tue Feb 2 14:32:51 UTC 2016
pkgbase = hira-git
pkgdesc = A command to transliterate ASCII to Hiragana.
pkgver = r13.3eb60dc
diff --git a/PKGBUILD b/PKGBUILD
index b5dfa893315..62334e2c1a3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,6 +23,7 @@ noextract=()
_gourl=robpike.io/cmd/hira
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)"
}