diff options
author | Oscar Cowdery Lack | 2023-08-17 11:53:42 +1000 |
---|---|---|
committer | Oscar Cowdery Lack | 2023-08-17 11:53:42 +1000 |
commit | e5c3439d7b8231a6addc1a3538ab3696e5911b9c (patch) | |
tree | c33b5a26fdeb2e23bc5c73c9647206c6112a56c5 | |
download | aur-e5c3439d7b8231a6addc1a3538ab3696e5911b9c.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9e15c7c95ba6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = nsc + pkgdesc = A tool for creating NATS account and user access configurations + pkgver = 2.8.0 + pkgrel = 1 + url = https://github.com/nats-io/nsc + arch = x86_64 + license = Apache + makedepends = go + source = nsc-2.8.0.tar.gz::https://github.com/nats-io/nsc/archive/refs/tags/v2.8.0.tar.gz + sha256sums = 318d28528bdd36abb929bb75b396cd8d4bee7b32c68a5c0be1786a168cec6ec9 + +pkgname = nsc diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..014f096a7952 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Oscar Cowdery Lack <oscar.cowderylack@gmail.com> +pkgname=nsc +pkgver=2.8.0 +pkgrel=1 +pkgdesc="A tool for creating NATS account and user access configurations" +arch=(x86_64) +url="https://github.com/nats-io/nsc" +license=('Apache') +makedepends=(go) +source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('318d28528bdd36abb929bb75b396cd8d4bee7b32c68a5c0be1786a168cec6ec9') + +build() { + cd "$pkgname-$pkgver" + 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" + go build . +} + +package() { + cd "$pkgname-$pkgver" + install -Dm755 ./$pkgname "$pkgdir"/usr/bin/$pkgname +} |