diff options
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,6 +1,6 @@ pkgname="fathom-git" pkgrel=1 -pkgver="i.dont.know.what.to.put.here" +pkgver="v1.2.1.r43.gb278944" pkgdesc="Fathom - simple website analytics (Community Edition)" url="https://github.com/usefathom/fathom" license=("MIT") @@ -14,6 +14,11 @@ source=("git+https://github.com/usefathom/fathom.git") md5sums=("SKIP") _gitname="fathom" +pkgver() { + cd "$_gitname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + prepare(){ mkdir -p gopath/src/github.com/usefathom ln -rTsf "$_gitname" gopath/src/github.com/usefathom/fathom |