summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorj.r2021-03-16 08:38:56 +0100
committerj.r2021-03-16 08:38:56 +0100
commit6e44aa8e7dd4302e48677a3d296f89671b1719b0 (patch)
treefc4366d328ce4efd632615ce81566d63bb4f5d59
parent0d15cb690cf52ad346851267e8624dbb2bbc648c (diff)
downloadaur-6e44aa8e7dd4302e48677a3d296f89671b1719b0.tar.gz
telegram-tg-git: remove prefix from version
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 3 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c07b6f678f4..1919e0b697b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = telegram-tg-git
pkgdesc = terminal telegram client that really works
- pkgver = v0.7.0.r7.1cd023a
+ pkgver = 0.7.0.r7.1cd023a
pkgrel = 1
url = https://github.com/paul-nameless/tg
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 21464e070b3..569d11319d1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: j.r <j.r@jugendhacker.de>
_pkgname=telegram-tg
pkgname=$_pkgname-git
-pkgver=v0.7.0.r7.1cd023a
+pkgver=0.7.0.r7.1cd023a
pkgrel=1
pkgdesc="terminal telegram client that really works"
arch=(any)
@@ -26,10 +26,7 @@ md5sums=('SKIP'
pkgver() {
cd "$srcdir/$_pkgname"
- 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)"
+ printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/\(v\)\(.*\)/\2/')"
}
prepare() {