diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 37 |
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 @@ | |||
1 | pkgbase = 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 | |||
12 | pkgname = 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 | |||
3 | pkgname='gau' | ||
4 | pkgver=1.0.7 | ||
5 | pkgrel=1 | ||
6 | pkgdesc="Fetch known URLs from AlienVault's Open Threat Exchange, the Wayback Machine, and Common Crawl" | ||
7 | arch=('x86_64') | ||
8 | url='https://github.com/lc/gau' | ||
9 | license=('MIT') | ||
10 | makedepends=('go') | ||
11 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") | ||
12 | sha256sums=('5672bd30f9da06b34a7d5b49f9f5e9ef1c8b83968f5801da3114a38fa563d8ad') | ||
13 | |||
14 | prepare() { | ||
15 | export GOPATH="${srcdir}/gopath" | ||
16 | go clean -modcache | ||
17 | } | ||
18 | |||
19 | build() { | ||
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 | |||
30 | package() { | ||
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: | ||