summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLuis Aranguren2022-03-17 23:25:40 +1100
committerLuis Aranguren2022-03-17 23:25:40 +1100
commit43560987a4a3602a046e6513d22a88e8062b1257 (patch)
treeabf0db08e9b54e630638be0c7ae16396f16e2e86 /PKGBUILD
parent1089868ddca473d21470dc809c88c7f8c271e7b8 (diff)
downloadaur-43560987a4a3602a046e6513d22a88e8062b1257.tar.gz
4.0.beta.1.r162.ga8611597, changed versioning to tags
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 2 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index abbd5bf503ae..4de72618b49b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: skydrome <skydrome@i2pmail.org>
pkgname='rutorrent-git'
-pkgver=r2999.3830f834
+pkgver=4.0.beta.1.r162.ga8611597
pkgrel=1
pkgdesc="Web frontend to rTorrent in PHP designed to resemble uTorrent"
url="https://github.com/Novik/ruTorrent"
@@ -36,10 +36,7 @@ md5sums=('SKIP')
pkgver() {
cd "$srcdir/rutorrent"
-
- _gitrev=$(git rev-parse --short HEAD)
- _gitcount=$(git rev-list --count HEAD)
- echo "r${_gitcount}.${_gitrev}"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {