From ad88af05fc9e191adc403eac383e652d0ad6674b Mon Sep 17 00:00:00 2001 From: caltlgin Date: Wed, 4 Nov 2020 15:04:27 +1300 Subject: Add to AUR --- .SRCINFO | 13 +++++++++++++ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..5e5edca --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = gau + pkgdesc = Fetch known URLs from AlienVault's Open Threat Exchange, the Wayback Machine, and Common Crawl + pkgver = 1.0.7 + pkgrel = 1 + url = https://github.com/lc/gau + arch = x86_64 + license = MIT + makedepends = go + source = gau-1.0.7.tar.gz::https://github.com/lc/gau/archive/v1.0.7.tar.gz + sha256sums = 5672bd30f9da06b34a7d5b49f9f5e9ef1c8b83968f5801da3114a38fa563d8ad + +pkgname = gau + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ef76a0d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Caltlgin Stsodaat + +pkgname='gau' +pkgver=1.0.7 +pkgrel=1 +pkgdesc="Fetch known URLs from AlienVault's Open Threat Exchange, the Wayback Machine, and Common Crawl" +arch=('x86_64') +url='https://github.com/lc/gau' +license=('MIT') +makedepends=('go') +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") +sha256sums=('5672bd30f9da06b34a7d5b49f9f5e9ef1c8b83968f5801da3114a38fa563d8ad') + +prepare() { + export GOPATH="${srcdir}/gopath" + go clean -modcache +} + +build() { + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + + cd "${pkgname}-${pkgver}" + go build -v -o "${pkgname}" . +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dvm755 "${pkgname}" -t "${pkgdir}/usr/bin" + install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim: ts=2 sw=2 et: -- cgit v1.2.3-70-g09d2