From e0028035d93407adb8f028e4f04a35b6c4bd50ad Mon Sep 17 00:00:00 2001 From: Daniel Lewan Date: Sun, 10 Jul 2022 14:37:50 +0200 Subject: [PATCH 1/2] New package: nats-0.0.35 --- srcpkgs/nats/template | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 srcpkgs/nats/template diff --git a/srcpkgs/nats/template b/srcpkgs/nats/template new file mode 100644 index 000000000000..ecdcf729ede4 --- /dev/null +++ b/srcpkgs/nats/template @@ -0,0 +1,27 @@ +# Template file for 'nats' +pkgname=nats +version=0.0.35 +revision=1 +build_style=go +go_import_path=github.com/nats-io/natscli/nats +go_ldflags="-X main.version=v${version}" +short_desc="Command line utility to interact with and manage NATS" +maintainer="Daniel Lewan " +license="Apache-2.0" +homepage="https://nats.io/" +distfiles="https://github.com/nats-io/natscli/archive/v${version}.tar.gz" +checksum=7a5f8b9fc37726bf9e446bc05dc8680852e9dd5c7364f59b53676abb3509b94b + +pre_build() { + for shell in bash zsh + do + CGO_ENABLED=0 GOARCH='' go run nats/main.go --completion-script-$shell >completion.$shell + done +} + +post_install() { + for shell in bash zsh + do + vcompletion completion.$shell $shell + done +} From c7d93cbba9092f0d15d4a28616aaaf8c58d51645 Mon Sep 17 00:00:00 2001 From: Daniel Lewan Date: Sun, 10 Jul 2022 14:37:52 +0200 Subject: [PATCH 2/2] New package: nats-server-2.9.8 --- srcpkgs/nats-server/template | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 srcpkgs/nats-server/template diff --git a/srcpkgs/nats-server/template b/srcpkgs/nats-server/template new file mode 100644 index 000000000000..9a1e5b73e6f3 --- /dev/null +++ b/srcpkgs/nats-server/template @@ -0,0 +1,12 @@ +# Template file for 'nats-server' +pkgname=nats-server +version=2.9.8 +revision=1 +build_style=go +go_import_path=github.com/nats-io/nats-server/v2 +short_desc="Server for NATS messaging system" +maintainer="Daniel Lewan " +license="Apache-2.0" +homepage="https://nats.io/" +distfiles="https://github.com/nats-io/nats-server/archive/v${version}.tar.gz" +checksum=31ad53e46a3dafdd9dfe52ce751b7fd5eaf838810c42d002b11477ee8d6e3471