# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=ffuf pkgver=v2.1.0.r3.gde9ac86 pkgrel=1 epoch=1 groups=('blackarch' 'blackarch-webapp' 'blackarch-fuzzer') pkgdesc='Fast web fuzzer written in Go.' arch=('x86_64' 'aarch64') url='https://github.com/ffuf/ffuf' license=('MIT') makedepends=('git' 'go') options=('!strip') source=("git+https://github.com/ffuf/$pkgname.git") sha512sums=('SKIP') pkgver() { cd $pkgname git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd $pkgname GOPATH="$srcdir" go mod download GOPATH="$srcdir" go build \ -trimpath \ -buildmode=pie \ -mod=readonly \ -modcacherw \ -ldflags "-s -w" \ -o $pkgname . } package() { cd $pkgname install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname" install -Dm 644 "${pkgname}rc.example" \ "$pkgdir/usr/share/$pkgname/${pkgname}rc.example" install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md }