diff options
author | Yigit Sever | 2022-12-25 19:03:06 +0300 |
---|---|---|
committer | Yigit Sever | 2022-12-25 19:03:06 +0300 |
commit | b62c102bb6a79278d1b3b015fe986b8ab33428e4 (patch) | |
tree | 681762c02722f604a4e7d613d37855d3a212c9d0 /gau | |
parent | ae43c9079dc3762405740e4d80e54d67f29f2685 (diff) | |
parent | 1be890c6faded6bf035298f918e1f3c25ec295c6 (diff) | |
download | packages-b62c102bb6a79278d1b3b015fe986b8ab33428e4.tar.gz packages-b62c102bb6a79278d1b3b015fe986b8ab33428e4.tar.bz2 packages-b62c102bb6a79278d1b3b015fe986b8ab33428e4.zip |
Add 'gau/' from commit '1be890c6faded6bf035298f918e1f3c25ec295c6'
git-subtree-dir: gau
git-subtree-mainline: ae43c9079dc3762405740e4d80e54d67f29f2685
git-subtree-split: 1be890c6faded6bf035298f918e1f3c25ec295c6
Diffstat (limited to 'gau')
-rw-r--r-- | gau/.SRCINFO | 13 | ||||
-rw-r--r-- | gau/.gitignore | 4 | ||||
-rw-r--r-- | gau/PKGBUILD | 30 |
3 files changed, 47 insertions, 0 deletions
diff --git a/gau/.SRCINFO b/gau/.SRCINFO new file mode 100644 index 0000000..103f069 --- /dev/null +++ b/gau/.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 = 2.0.8 | ||
4 | pkgrel = 1 | ||
5 | url = https://github.com/lc/gau | ||
6 | arch = any | ||
7 | license = MIT | ||
8 | makedepends = go | ||
9 | depends = glibc | ||
10 | source = gau-2.0.8.tar.gz::https://github.com/lc/gau/archive/v2.0.8.tar.gz | ||
11 | sha256sums = 9604f0b7bf258547778a155afd2c58d32eeeb82d3bcbcbe97616ccefd1287d9a | ||
12 | |||
13 | pkgname = gau | ||
diff --git a/gau/.gitignore b/gau/.gitignore new file mode 100644 index 0000000..05c6d4d --- /dev/null +++ b/gau/.gitignore | |||
@@ -0,0 +1,4 @@ | |||
1 | * | ||
2 | !.gitignore | ||
3 | !.SRCINFO | ||
4 | !PKGBUILD | ||
diff --git a/gau/PKGBUILD b/gau/PKGBUILD new file mode 100644 index 0000000..c4de113 --- /dev/null +++ b/gau/PKGBUILD | |||
@@ -0,0 +1,30 @@ | |||
1 | # Maintainer: <contact@amadejpapez.com> | ||
2 | |||
3 | pkgname=gau | ||
4 | pkgver=2.0.8 | ||
5 | pkgrel=1 | ||
6 | pkgdesc="Fetch known URLs from AlienVault's Open Threat Exchange, the Wayback Machine, and Common Crawl" | ||
7 | arch=(any) | ||
8 | url='https://github.com/lc/gau' | ||
9 | license=(MIT) | ||
10 | depends=(glibc) | ||
11 | makedepends=(go) | ||
12 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") | ||
13 | sha256sums=('9604f0b7bf258547778a155afd2c58d32eeeb82d3bcbcbe97616ccefd1287d9a') | ||
14 | |||
15 | build() { | ||
16 | export CGO_CPPFLAGS="${CPPFLAGS}" | ||
17 | export CGO_CFLAGS="${CFLAGS}" | ||
18 | export CGO_CXXFLAGS="${CXXFLAGS}" | ||
19 | export CGO_LDFLAGS="${LDFLAGS}" | ||
20 | export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" | ||
21 | |||
22 | cd "${pkgname}-${pkgver}/cmd/gau" | ||
23 | go build -v -o "${pkgname}" . | ||
24 | } | ||
25 | |||
26 | package() { | ||
27 | cd "${pkgname}-${pkgver}" | ||
28 | install -Dvm755 "cmd/gau/gau" -t "${pkgdir}/usr/bin" | ||
29 | install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}" | ||
30 | } | ||