diff options
author | j.r | 2020-06-29 00:18:08 +0200 |
---|---|---|
committer | j.r | 2020-06-29 00:18:08 +0200 |
commit | 18377faa69b582c535ccf4ca50dfa8db34a220c0 (patch) | |
tree | 9cf6f76653be13bf359ec4822e8c86a41b4cf3a6 | |
parent | 5cf45153561b3e741122850b51910481a5d26fe7 (diff) | |
download | aur-18377faa69b582c535ccf4ca50dfa8db34a220c0.tar.gz |
Update to versioning with tags
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 6 insertions, 3 deletions
@@ -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 @@ -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() { |