diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 7 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = python-better-apidoc-git pkgdesc = A version of sphinx-apidoc with support for templating. pkgver = 0.2.0.r26.0aa3bb3 - pkgrel = 2 + pkgrel = 3 url = https://github.com/goerz/better-apidoc arch = any license = FreeBSD @@ -2,7 +2,7 @@ _pkgname=better-apidoc pkgname=python-$_pkgname-git pkgver=0.2.0.r26.0aa3bb3 -pkgrel=2 +pkgrel=3 pkgdesc="A version of sphinx-apidoc with support for templating." arch=('any') url="https://github.com/goerz/better-apidoc" @@ -14,12 +14,13 @@ conflicts=('python-better-apidoc') source=("git+https://github.com/goerz/better-apidoc.git") md5sums=('SKIP') +prepare() { + cd better-apidoc + git checkout $(curl https://api.github.com/repos/goerz/better-apidoc/releases | grep tag_name| cut -d '"' -f4 | head -n 1) +} + pkgver() { cd $_pkgname - # ( set -o pipefail - # git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || - # printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" - # ) printf "%s.r%s.%s" "$(cat better_apidoc.py | grep -i version | grep -v '#' | cut -d "'" -f2 | head -n 1)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } |