diff options
author | Mark Wagie | 2024-02-24 10:29:49 -0700 |
---|---|---|
committer | Mark Wagie | 2024-02-24 10:29:49 -0700 |
commit | c173f1a752279ca358531b034cc34149b014a16e (patch) | |
tree | b5d73da3715ece6a15b40ec733ac0e80ab51e7d4 | |
parent | 8aac4e3acfc7a7627b3b935c26116037682c6dcc (diff) | |
download | aur-c173f1a752279ca358531b034cc34149b014a16e.tar.gz |
use git tags for pkgver
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 3 insertions, 4 deletions
@@ -1,6 +1,6 @@ pkgbase = nicotine-plus-git pkgdesc = A graphical client for the SoulSeek peer-to-peer system - pkgver = 3.3.1.dev1.r10541.2bf25fb39 + pkgver = 3.3.1.r0.gf7f1f3f3b pkgrel = 1 url = https://nicotine-plus.org arch = any @@ -4,7 +4,7 @@ # Contributor: x-demon pkgname=nicotine-plus-git _appdata_id=org.nicotine_plus.Nicotine -pkgver=3.3.1.dev1.r10541.2bf25fb39 +pkgver=3.3.1.r0.gf7f1f3f3b pkgrel=1 pkgdesc="A graphical client for the SoulSeek peer-to-peer system" arch=('any') @@ -21,8 +21,7 @@ sha256sums=('SKIP') pkgver() { cd "$srcdir/${pkgname%-git}" - printf "%s.r%s.%s" "$(python setup.py --version)" \ - "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { |