diff options
author | caltlgin | 2020-12-07 12:34:38 +1300 |
---|---|---|
committer | caltlgin | 2020-12-07 12:34:38 +1300 |
commit | f7c1711cd6f513839d85ea57047fda616efe13ff (patch) | |
tree | 18fcec6864e7bfd13599652442b4b78fd4fae65a | |
download | aur-f7c1711cd6f513839d85ea57047fda616efe13ff.tar.gz |
Add to AUR
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 37 |
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c2fff07bdaee --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = cloudlist + pkgdesc = Tool for listing Assets from multiple Cloud Providers + pkgver = 0.0.1 + pkgrel = 1 + url = https://github.com/projectdiscovery/cloudlist + arch = x86_64 + arch = armv6h + arch = aarch64 + license = MIT + makedepends = go + source = cloudlist-0.0.1.tar.gz::https://github.com/projectdiscovery/cloudlist/archive/v0.0.1.tar.gz + sha256sums = 8ea13a80755e059bf38ca96e40012161cf6101567e9ae0f18cbf6c70b2810534 + +pkgname = cloudlist + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..623d0e70ff3e --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5274b5de58f3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> + +pkgname='cloudlist' +pkgver=0.0.1 +pkgrel=1 +pkgdesc='Tool for listing Assets from multiple Cloud Providers' +arch=('x86_64' 'armv6h' 'aarch64') +url='https://github.com/projectdiscovery/cloudlist' +license=('MIT') +makedepends=('go') +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") +sha256sums=('8ea13a80755e059bf38ca96e40012161cf6101567e9ae0f18cbf6c70b2810534') + +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}" ."/cmd/${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.md' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim: ts=2 sw=2 et: |