-
-
Notifications
You must be signed in to change notification settings - Fork 570
/
PKGBUILD
49 lines (38 loc) · 1.11 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
pkgname=amass
_pkgname=Amass
pkgver=2143.5f1f7176
pkgrel=1
epoch=2
pkgdesc='In-depth subdomain enumeration written in Go.'
arch=('x86_64' 'aarch64')
groups=('blackarch' 'blackarch-scanner' 'blackarch-recon')
url='https://github.com/OWASP/Amass'
license=('Apache')
makedepends=('git' 'go')
source=('git+https://github.com/OWASP/Amass.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 ./cmd/...
}
package() {
cd $_pkgname
install -dm 755 "$pkgdir/usr/share/$pkgname"
install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
cp -a --no-preserve=ownership examples "$pkgdir/usr/share/$pkgname"
mv "$pkgdir/usr/share/$pkgname/examples/wordlists" "$pkgdir/usr/share/$pkgname"
chmod 644 "$pkgdir/usr/share/$pkgname/"{wordlists/*,examples/*}
}