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() {