# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=aquatone pkgver=142.2daa022 pkgrel=1 pkgdesc='A Tool for Domain Flyovers.' groups=('blackarch' 'blackarch-recon') arch=('x86_64' 'aarch64') url='https://github.com/shelld3v/aquatone' license=('MIT') depends=('chromium') makedepends=('git' 'go-pie') source=("git+https://github.com/shelld3v/$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 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 -t "$pkgdir/usr/share/doc/$pkgname" *.md }