From 9c8786307ffe3f0026c277c3e373db8b9e44140e Mon Sep 17 00:00:00 2001 From: Aaron Duxler Date: Fri, 29 May 2026 11:57:20 +0200 Subject: [PATCH] New package: egctl-1.8.0 --- srcpkgs/egctl/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/egctl/template diff --git a/srcpkgs/egctl/template b/srcpkgs/egctl/template new file mode 100644 index 00000000000000..e212a0b4b5fc20 --- /dev/null +++ b/srcpkgs/egctl/template @@ -0,0 +1,28 @@ +# Template file for 'egctl' +pkgname=egctl +version=1.8.0 +revision=1 +archs="x86_64* aarch64*" +build_style=go +go_import_path="github.com/envoyproxy/gateway" +go_package="${go_import_path}/cmd/egctl" +go_build_tags="exclude_graphdriver_btrfs" +short_desc="Command-line utility for operating Envoy Gateway" +maintainer="Aaron Duxler " +license="Apache-2.0" +homepage="https://gateway.envoyproxy.io/" +distfiles="https://github.com/envoyproxy/gateway/archive/v${version}.tar.gz" +checksum=3b00403aa99eda90cc4d1194648640a71aff416a9447eae983278b0df04948e0 + +post_build() { + for shell in bash fish zsh; do + CGO_ENABLED=0 GOARCH="" go run cmd/egctl/main.go completion "$shell" \ + >"completion.$shell" + done +} + +post_install() { + for shell in bash fish zsh; do + vcompletion "completion.$shell" "$shell" + done +}