# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=crlfuzz pkgver=62.7a442bb pkgrel=1 groups=('blackarch' 'blackarch-webapp' 'blackarch-scanner') pkgdesc='A fast tool to scan CRLF vulnerability written in Go.' arch=('x86_64' 'aarch64') url='https://github.com/dwisiswant0/crlfuzz' license=('MIT') depends=() makedepends=('git' 'go') source=("git+https://github.com/dwisiswant0/$pkgname.git") sha512sums=('SKIP') pkgver() { cd $pkgname echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) } build() { cd $pkgname GOPATH="$srcdir" go mod tidy GOPATH="$srcdir" go mod download cd "cmd/$pkgname" GOPATH="$srcdir" go build \ -trimpath \ -buildmode=pie \ -mod=readonly \ -modcacherw \ -ldflags "-s -w" \ -o $pkgname . } package() { cd $pkgname install -Dm 755 "cmd/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname" install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md }