[arch-commits] Commit in cmctl/trunk (PKGBUILD)

Christian Rebischke shibumi at gemini.archlinux.org
Wed Nov 10 23:00:38 UTC 2021


    Date: Wednesday, November 10, 2021 @ 23:00:38
  Author: shibumi
Revision: 1040583

upgpkg: cmctl 1.6.1-2

Modified:
  cmctl/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-10 23:00:19 UTC (rev 1040582)
+++ PKGBUILD	2021-11-10 23:00:38 UTC (rev 1040583)
@@ -2,7 +2,7 @@
 # Contributor: ml <>
 pkgname=cmctl
 pkgver=1.6.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Automatically provision and manage TLS certificates in Kubernetes'
 arch=('x86_64' 'aarch64')
 url='https://github.com/jetstack/cert-manager'
@@ -30,7 +30,9 @@
   export CGO_CPPFLAGS="$CPPFLAGS"
   export CGO_CXXFLAGS="$CXXFLAGS"
   export GOFLAGS='-buildmode=pie -trimpath -modcacherw -mod=readonly'
-  go build -ldflags="-linkmode=external ${_x[*]/#/-X=github.com/jetstack/cert-manager/pkg/util.}" ./cmd/ctl
+  go build -ldflags="-linkmode=external ${_x[*]/#/-X=github.com/jetstack/cert-manager/pkg/util.} 
+  -X github.com/jetstack/cert-manager/cmd/ctl/pkg/build.name=cmctl 
+  -X github.com/jetstack/cert-manager/cmd/ctl/pkg/build/commands.registerCompletion=true" ./cmd/ctl
 }
 
 check() {
@@ -42,4 +44,16 @@
 package() {
   cd cert-manager-"$pkgver"
   install -Dm755 ctl "$pkgdir"/usr/bin/cmctl
+
+  # build bash completions
+  mkdir -p "${pkgdir}/usr/share/bash-completion/completions"
+  "$pkgdir"/usr/bin/cmctl completion bash > "${pkgdir}/usr/share/bash-completion/completions/cmctl"
+
+  # build zsh completions
+  mkdir -p "${pkgdir}/usr/share/zsh/site-functions"
+  "$pkgdir"/usr/bin/cmctl completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_cmctl"
+
+  # build fish completions
+  mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
+  "$pkgdir"/usr/bin/cmctl completion fish > "${pkgdir}/usr/share/fish/vendor_completions.d/cmctl.fish"
 }



More information about the arch-commits mailing list