From 708fff56d5e2b157392129ae0f6860e90e4b45cf Mon Sep 17 00:00:00 2001 From: Levon 'noptrix' Kayan Date: Fri, 29 Nov 2024 01:20:02 +0100 Subject: [PATCH] navgix: use new style of version fetch. --- packages/navgix/PKGBUILD | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/navgix/PKGBUILD b/packages/navgix/PKGBUILD index 1d92566c3f5..831c4d16097 100644 --- a/packages/navgix/PKGBUILD +++ b/packages/navgix/PKGBUILD @@ -8,7 +8,7 @@ pkgdesc='Multi-threaded golang tool that will check for nginx alias traversal vu arch=('x86_64' 'aarch64') groups=('blackarch' 'blackarch-scanner') url='https://github.com/hakaioffsec/navgix' -license=('NONE') +license=('custom:unknown') makedepends=('git' 'go') source=("git+https://github.com/hakaioffsec/$pkgname.git") sha512sums=('SKIP') @@ -16,7 +16,12 @@ sha512sums=('SKIP') pkgver() { cd $pkgname - echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) } build() {