summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorcaltlgin2020-11-04 15:04:27 +1300
committercaltlgin2020-11-04 15:04:27 +1300
commitad88af05fc9e191adc403eac383e652d0ad6674b (patch)
tree6bb506e6f99159c12ef2496ba9a15e02d1ef7314 /PKGBUILD
downloadpackages-ad88af05fc9e191adc403eac383e652d0ad6674b.tar.gz
packages-ad88af05fc9e191adc403eac383e652d0ad6674b.tar.bz2
packages-ad88af05fc9e191adc403eac383e652d0ad6674b.zip
Add to AUR
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..ef76a0d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
1# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
2
3pkgname='gau'
4pkgver=1.0.7
5pkgrel=1
6pkgdesc="Fetch known URLs from AlienVault's Open Threat Exchange, the Wayback Machine, and Common Crawl"
7arch=('x86_64')
8url='https://github.com/lc/gau'
9license=('MIT')
10makedepends=('go')
11source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
12sha256sums=('5672bd30f9da06b34a7d5b49f9f5e9ef1c8b83968f5801da3114a38fa563d8ad')
13
14prepare() {
15 export GOPATH="${srcdir}/gopath"
16 go clean -modcache
17}
18
19build() {
20 export CGO_CPPFLAGS="${CPPFLAGS}"
21 export CGO_CFLAGS="${CFLAGS}"
22 export CGO_CXXFLAGS="${CXXFLAGS}"
23 export CGO_LDFLAGS="${LDFLAGS}"
24 export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
25
26 cd "${pkgname}-${pkgver}"
27 go build -v -o "${pkgname}" .
28}
29
30package() {
31 cd "${pkgname}-${pkgver}"
32 install -Dvm755 "${pkgname}" -t "${pkgdir}/usr/bin"
33 install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${pkgname}"
34 install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
35}
36
37# vim: ts=2 sw=2 et: