diff options
author | caltlgin | 2020-11-04 15:04:27 +1300 |
---|---|---|
committer | caltlgin | 2020-11-04 15:04:27 +1300 |
commit | ad88af05fc9e191adc403eac383e652d0ad6674b (patch) | |
tree | 6bb506e6f99159c12ef2496ba9a15e02d1ef7314 /PKGBUILD | |
download | packages-ad88af05fc9e191adc403eac383e652d0ad6674b.tar.gz packages-ad88af05fc9e191adc403eac383e652d0ad6674b.tar.bz2 packages-ad88af05fc9e191adc403eac383e652d0ad6674b.zip |
Add to AUR
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
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 | |||
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: | ||