summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD9
1 files changed, 1 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4fd2c0f6869..7ada2cda0e9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,14 +18,7 @@ sha256sums=('SKIP')
pkgver() {
cd $pkgname
-
- _info="$(git blame -s README.md|grep 'Tuxemon [0-9].[0-9].[0-9]')"
- _version="$(echo $_info | awk '{print $4}')"
- _commit="$(echo $_info | awk '{print $1}')"
- _revisions="$(git rev-list --count $_commit..HEAD)"
- _current_commit="$(git log --pretty=format:'%h' -n 1)"
-
- printf "%s.r%d.g%s" $_version $_revisions $_current_commit
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {