diff options
author | soloturn | 2020-06-08 00:26:50 +0200 |
---|---|---|
committer | soloturn | 2020-06-08 00:26:50 +0200 |
commit | b320186791f3459685805ec32c9ff148a210a99e (patch) | |
tree | b815b6fb00d68c03c2532b8b9cb5efeb138b0a59 | |
parent | 395171a1babd20a6bdeaec6209188efc24f83954 (diff) | |
download | aur-b320186791f3459685805ec32c9ff148a210a99e.tar.gz |
tags are now in the tree, calculate version with them
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = xmoto-git pkgdesc = A challenging 2D motocross platform game, where physics play an important role. - pkgver = r632.9d507b2d + pkgver = 0.6.0.r22.g9d507b2d pkgrel = 1 url = http://xmoto.tuxfamily.org arch = i686 @@ -5,7 +5,7 @@ _basename=xmoto pkgname="$_basename-git" -pkgver=r632.9d507b2d +pkgver=0.6.0.r22.g9d507b2d pkgrel=1 pkgdesc="A challenging 2D motocross platform game, where physics play an important role." arch=('i686' 'x86_64') @@ -22,7 +22,7 @@ sha1sums=('SKIP') pkgver() { cd "$pkgname" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { |