diff options
author | Mark Wagie | 2020-05-26 14:33:53 -0600 |
---|---|---|
committer | Mark Wagie | 2020-05-26 14:33:53 -0600 |
commit | 26c1e9df0c34598b7b7c50cc54039f275f8c8e7a (patch) | |
tree | 4a53dc95c2f5c54e83baceb586a03bdd225ca963 | |
parent | a3f49ad5449d14f2e9d6031c7ce472a56fd5dc1a (diff) | |
download | aur-26c1e9df0c34598b7b7c50cc54039f275f8c8e7a.tar.gz |
generate pkgver from debian changelog
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = nicotine-plus-git pkgdesc = A graphical client for the SoulSeek peer-to-peer system - pkgver = 1.4.1.r293.gfcfcd66d + pkgver = 1.4.3.2.r2403.5b28af9e pkgrel = 1 url = http://nicotine-plus.org arch = any @@ -3,7 +3,7 @@ # Contributor: Jorge Barroso <jorge.barroso.11 at gmail dot com> # Contributor: x-demon pkgname=nicotine-plus-git -pkgver=1.4.1.r293.gfcfcd66d +pkgver=1.4.3.2.r2403.5b28af9e pkgrel=1 pkgdesc="A graphical client for the SoulSeek peer-to-peer system" arch=('any') @@ -25,7 +25,8 @@ sha256sums=('SKIP') pkgver() { cd "$srcdir/${pkgname%-git}" - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + printf "%s.r%s.%s" "$(head -n 1 debian/changelog | cut -d'(' -f 2 | cut -d')' -f 1 | \ + sed 's/-/./')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { |