diff options
author | kyechou | 2020-12-23 22:45:04 -0600 |
---|---|---|
committer | kyechou | 2020-12-23 22:45:04 -0600 |
commit | ddc85519bf82765992ec688e7b00a0d90b2257d4 (patch) | |
tree | 0b1e3439023d4a059d48b3e8c584a78461671640 | |
parent | 56504f9678f795d9de6b313ceef06db9eb3b74c2 (diff) | |
download | aur-ddc85519bf82765992ec688e7b00a0d90b2257d4.tar.gz |
Update versioning scheme
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 9 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = clickrouter-git pkgdesc = Fast modular packet processing and analysis - pkgver = v2.0.1.r951.g593d10826 + pkgver = 2.0.1.r951.g593d10826 pkgrel = 1 url = https://github.com/kohler/click arch = x86_64 @@ -13,7 +13,7 @@ pkgbase = clickrouter-git conflicts = click conflicts = click-git replaces = clickrouter - source = clickrouter-git::git+https://github.com/kohler/click.git + source = clickrouter-git::git+https://github.com/kohler/click sha256sums = SKIP pkgname = clickrouter-git @@ -1,7 +1,7 @@ # Maintainer: Kuan-Yen Chou <kuanyenchou at gmail dot com> pkgname=clickrouter-git -pkgver=v2.0.1.r951.g593d10826 +pkgver=2.0.1.r951.g593d10826 pkgrel=1 pkgdesc='Fast modular packet processing and analysis' depends=('glibc' 'libpcap') @@ -13,12 +13,16 @@ license=('custom') provides=('clickrouter') conflicts=('clickrouter' 'click' 'click-git') replaces=('clickrouter') -source=("$pkgname"::'git+https://github.com/kohler/click.git') +source=("$pkgname"::'git+https://github.com/kohler/click') sha256sums=('SKIP') pkgver() { cd "$srcdir/$pkgname" - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + if git describe >/dev/null 2>&1; then + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + else + printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git describe --always)" + fi } prepare() { |