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

Christian Rebischke shibumi at archlinux.org
Sat Nov 7 10:10:48 UTC 2020


    Date: Saturday, November 7, 2020 @ 10:10:47
  Author: shibumi
Revision: 745561

upgpkg: kustomize 3.8.6-2 add shell completions

This commit adds shell completions via invoking the kustomize completion command.
It fixes https://bugs.archlinux.org/task/67645

Modified:
  kustomize/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-07 10:06:06 UTC (rev 745560)
+++ PKGBUILD	2020-11-07 10:10:47 UTC (rev 745561)
@@ -3,7 +3,7 @@
 
 pkgname=kustomize
 pkgver=3.8.6
-pkgrel=1
+pkgrel=2
 pkgdesc="Template-free customization of Kubernetes YAML manifests"
 arch=('x86_64')
 url="https://github.com/kubernetes-sigs/kustomize"
@@ -41,6 +41,15 @@
 package(){
   cd "kustomize-kustomize-v${pkgver}/kustomize"
 
+  # install completions
+  mkdir -p "${pkgdir}/usr/share/bash-completion/completions"
+  ./kustomize completion bash >  "${pkgdir}/usr/share/bash-completion/completions/kustomize"
+  mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
+  ./kustomize completion zsh >  "${pkgdir}/usr/share/zsh/site-functions/_kustomize"
+  mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d"
+  ./kustomize completion fish >  "${pkgdir}/usr/share/fish/vendor_completions.d/kustomize.fish"
+
+  # install binary
   install -D kustomize "${pkgdir}/usr/bin/kustomize"
 }
 



More information about the arch-commits mailing list