fix for pkgver

This commit is contained in:
Nicola Hinssen 2019-05-12 22:05:29 +02:00
parent b8feaf3839
commit 9ff41f4fcf
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
pkgbase = nzbget-git
pkgdesc = Download from Usenet using .nzb files
pkgver = 21.0.r2306.bbfcf076
pkgver = 21.0.r2309.5dda6b2e
pkgrel = 1
epoch = 1
url = https://github.com/nzbget/nzbget

View file

@ -2,7 +2,7 @@
# Contributor: Jan Holthuis <holthuis.jan@googlemail.com>
pkgname=nzbget-git
pkgver=21.0.r2306.bbfcf076
pkgver=21.0.r2309.5dda6b2e
pkgrel=1
epoch=1
pkgdesc="Download from Usenet using .nzb files"
@ -26,7 +26,7 @@ sha256sums=('SKIP'
pkgver() {
cd "$pkgname"
printf "%s.r%s.%s" "$(git describe --tags | sed 's/v//')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
printf "%s.r%s.%s" "$(git describe --tags | sed 's/^v//;s/-.*//g')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {