summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Aranguren2022-03-17 23:25:40 +1100
committerLuis Aranguren2022-03-17 23:25:40 +1100
commit43560987a4a3602a046e6513d22a88e8062b1257 (patch)
treeabf0db08e9b54e630638be0c7ae16396f16e2e86
parent1089868ddca473d21470dc809c88c7f8c271e7b8 (diff)
downloadaur-43560987a4a3602a046e6513d22a88e8062b1257.tar.gz
4.0.beta.1.r162.ga8611597, changed versioning to tags
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 3 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 32a717e651f6..06b9f6a82c39 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = rutorrent-git
pkgdesc = Web frontend to rTorrent in PHP designed to resemble uTorrent
- pkgver = r2999.3830f834
+ pkgver = 4.0.beta.1.r162.ga8611597
pkgrel = 1
url = https://github.com/Novik/ruTorrent
install = rutorrent.install
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() {