summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcaltlgin2020-11-04 15:04:27 +1300
committercaltlgin2020-11-04 15:04:27 +1300
commitad88af05fc9e191adc403eac383e652d0ad6674b (patch)
tree6bb506e6f99159c12ef2496ba9a15e02d1ef7314
downloadpackages-ad88af05fc9e191adc403eac383e652d0ad6674b.tar.gz
packages-ad88af05fc9e191adc403eac383e652d0ad6674b.tar.bz2
packages-ad88af05fc9e191adc403eac383e652d0ad6674b.zip
Add to AUR
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD37
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..5e5edca
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
1pkgbase = gau
2 pkgdesc = Fetch known URLs from AlienVault's Open Threat Exchange, the Wayback Machine, and Common Crawl
3 pkgver = 1.0.7
4 pkgrel = 1
5 url = https://github.com/lc/gau
6 arch = x86_64
7 license = MIT
8 makedepends = go
9 source = gau-1.0.7.tar.gz::https://github.com/lc/gau/archive/v1.0.7.tar.gz
10 sha256sums = 5672bd30f9da06b34a7d5b49f9f5e9ef1c8b83968f5801da3114a38fa563d8ad
11
12pkgname = gau
13
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: