diff options
author | caltlgin | 2020-11-04 15:04:27 +1300 |
---|---|---|
committer | Yigit Sever | 2022-12-25 19:01:44 +0300 |
commit | 874a813d832448c27f0eb1a549730210449761a9 (patch) | |
tree | c4a56993ef74ccbd521d278c9155a8f97a19dd52 /PKGBUILD | |
parent | 60bbe05ae6ecb985bd6749007af2bc71558d37a7 (diff) | |
download | packages-874a813d832448c27f0eb1a549730210449761a9.tar.gz packages-874a813d832448c27f0eb1a549730210449761a9.tar.bz2 packages-874a813d832448c27f0eb1a549730210449761a9.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: | ||