diff options
author | Architekton | 2018-09-10 21:29:42 +1000 |
---|---|---|
committer | Architekton | 2018-09-10 21:29:42 +1000 |
commit | 10abf76c94bc9c196566cbae46b72f87497eecea (patch) | |
tree | 73b7ede0c5f57e88783cd33032ee037a327d42a6 /PKGBUILD | |
download | aur-10abf76c94bc9c196566cbae46b72f87497eecea.tar.gz |
Initial commit v2.6.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0cf87f778481 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: architekton <al512@protonmail.com> + +pkgname=amass +pkgver=2.6.0 +pkgrel=1 +pkgdesc="In-depth subdomain enumeration written in Go" +arch=('x86_64') +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=('a0f9b1d658a4e804de09628c377a8ad583da019985f1cba6522a8a8313734f77dfb813ae73bb850706dd4cdf669678a32a00c17320e0cb748b58f81ca03f678d') + + +prepare() { + mkdir -p "gopath/src/github.com/OWASP" + ln -rTsf "Amass-${pkgver}" "gopath/src/github.com/OWASP/Amass" + + export GOPATH="${srcdir}/gopath" + cd "${GOPATH}/src/github.com/OWASP/Amass" + go get -d ./... +} + +build() { + export GOPATH="${srcdir}/gopath" + cd "${GOPATH}/src/github.com/OWASP/Amass" + + go install -v ./... +} + +check() { + export GOPATH="${srcdir}/gopath" + cd "${GOPATH}/src/github.com/OWASP/Amass" + + go test ./... +} + +package() { + export GOPATH="${srcdir}/gopath" + cd "${GOPATH}/bin" + + install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}" +} |