summaryrefslogtreecommitdiffstats
path: root/gau/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'gau/PKGBUILD')
-rw-r--r--gau/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/gau/PKGBUILD b/gau/PKGBUILD
new file mode 100644
index 0000000..6276734
--- /dev/null
+++ b/gau/PKGBUILD
@@ -0,0 +1,31 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2# Contributor: <contact@amadejpapez.com>
3
4pkgname=gau
5pkgver=2.2.3
6pkgrel=1
7pkgdesc="Fetch known URLs from AlienVault's Open Threat Exchange, the Wayback Machine, and Common Crawl"
8arch=(any)
9url='https://github.com/lc/gau'
10license=(MIT)
11depends=(glibc)
12makedepends=(go)
13source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
14sha256sums=('02bb84bd73a385b4630a6c783f819f8339defc915df3a7d34cb872801d567c17')
15
16build() {
17 export CGO_CPPFLAGS="${CPPFLAGS}"
18 export CGO_CFLAGS="${CFLAGS}"
19 export CGO_CXXFLAGS="${CXXFLAGS}"
20 export CGO_LDFLAGS="${LDFLAGS}"
21 export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
22
23 cd "${pkgname}-${pkgver}/cmd/gau"
24 go build -v -o "${pkgname}" .
25}
26
27package() {
28 cd "${pkgname}-${pkgver}"
29 install -Dvm755 "cmd/gau/gau" -t "${pkgdir}/usr/bin"
30 install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
31}