Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=192
_pkgname="Amass"
pkgname="amass"
pkgver=3.14.1
pkgrel=1
pkgdesc=" tool to help information security professionals perform network mapping of attack surfaces and perform external asset discovery"
arch=('i686' 'x86_64')
url="https://github.com/OWASP/Amass"
license=('Apache')
groups=('archstrike' 'archstrike-enumeration' 'archstrike-recon')
makedepends=('go' 'git')
source=("${url}/archive/v${pkgver}.tar.gz")
sha512sums=('96343d76232c989ac3354d91add5f805002a3fa9d7889ce95814fafcf1d0f0404b050c42cb109efc339459cf2e4e14d782f47557fb5846eb0a59fbe64e987053')
prepare() {
mkdir -vp "${srcdir}/github.com/OWASP"
mv "${srcdir}/${_pkgname}-${pkgver}" "${srcdir}/github.com/OWASP/${_pkgname}"
export GOPATH="${srcdir}"
cd "${GOPATH}/github.com/OWASP/${_pkgname}"
go get -d ./...
}
check() {
cd "${srcdir}/github.com/OWASP/${_pkgname}"
export GOPATH="${srcdir}"
go test ./...
}
build() {
cd "${srcdir}/github.com/OWASP/${_pkgname}"
export GOPATH="${srcdir}"
go install -v ./...
}
package() {
export GOPATH="${srcdir}"
cd "${GOPATH}/bin"
install -dm 755 "${pkgdir}/usr/share/${pkgname}"
install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
cp -a --no-preserve=ownership "${GOPATH}/github.com/OWASP/${_pkgname}/examples/" "${pkgdir}/usr/share/${pkgname}"
chmod 644 "${pkgdir}/usr/share/${pkgname}"/examples/*
}