# Maintainer: architekton pkgname=amass pkgver=3.8.2 pkgrel=1 pkgdesc="In-depth subdomain enumeration written in Go" arch=('any') url="https://github.com/OWASP/Amass" license=('Apache') makedepends=('go' 'git') source=(Amass-$pkgver.tar.gz::https://github.com/OWASP/Amass/archive/v${pkgver}.tar.gz) sha512sums=('aec0b88200ab8fbcf0e610f1cb0d8131bb362390e9edaec202d519da7f634b0328712ae2f413b68027c2a7a4dfc6a52444d74180ac352500d1261fa4f37b6e19') build() { cd "Amass-$pkgver" mkdir bin go build \ -trimpath \ -ldflags "-extldflags $LDFLAGS" \ -v -o bin/ ./cmd/... } check() { cd "Amass-$pkgver" go test ./... # Remove golang mod cache otherwise makepkg clean doesn't work due to perms go clean -modcache } package() { cd "Amass-$pkgver" install -dm 755 "${pkgdir}/usr/share/${pkgname}" install -Dm 755 "bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" cp -a --no-preserve=ownership "examples/" "${pkgdir}/usr/share/${pkgname}" chmod 644 "${pkgdir}/usr/share/${pkgname}/examples/"* }