# Maintainer: architekton pkgname=amass pkgver=3.4.4 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=('47f99b8b817ea18b3068ff3dc0f2be5f2302041636f075d4f51ca41bf72ca508f694586e6a8feb9ac31e7244fefc7a8d0c75e067207f59a22739c5bccf496ba1') 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/"* }