Skip to content

Commit

Permalink
navgix: use new style of version fetch.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Nov 29, 2024
1 parent 488d66e commit 708fff5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/navgix/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@ 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')

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

0 comments on commit 708fff5

Please sign in to comment.