summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorj.r2020-06-29 00:18:08 +0200
committerj.r2020-06-29 00:18:08 +0200
commit18377faa69b582c535ccf4ca50dfa8db34a220c0 (patch)
tree9cf6f76653be13bf359ec4822e8c86a41b4cf3a6
parent5cf45153561b3e741122850b51910481a5d26fe7 (diff)
downloadaur-18377faa69b582c535ccf4ca50dfa8db34a220c0.tar.gz
Update to versioning with tags
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 6 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 16adf982223..2d30cba8344 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = telegram-tg-git
pkgdesc = terminal telegram client that really works
- pkgver = r299.73bb8b2
+ pkgver = v0.1.3.r0.f24e71f
pkgrel = 1
url = https://github.com/paul-nameless/tg
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index e5fda1a90af..9a0d5f0b08e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: j.r <j.r@jugendhacker.de>
_pkgname=telegram-tg
pkgname=$_pkgname-git
-pkgver=r299.73bb8b2
+pkgver=v0.1.3.r0.f24e71f
pkgrel=1
pkgdesc="terminal telegram client that really works"
arch=(any)
@@ -22,7 +22,10 @@ md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+
+ # We now have tags so this is not needed
+ #printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {