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

Christian Rebischke shibumi at archlinux.org
Wed Nov 25 19:16:57 UTC 2020


    Date: Wednesday, November 25, 2020 @ 19:16:56
  Author: shibumi
Revision: 761213

upgpkg: skaffold 1.16.0-2 fix completion + kubectl as optdep

Modified:
  skaffold/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-25 19:13:48 UTC (rev 761212)
+++ PKGBUILD	2020-11-25 19:16:56 UTC (rev 761213)
@@ -5,15 +5,17 @@
 
 pkgname=skaffold
 pkgver=1.16.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A command line tool that facilitates continuous development for Kubernetes applications"
 arch=("x86_64")
 url="https://github.com/GoogleContainerTools/${pkgname}"
 license=("Apache")
-depends=("docker" "kubectl")
+depends=("docker")
 makedepends=("go")
 optdepends=(
   "minikube: To use Minikube"
+  "kubectl: For Kubernetes support"
+  "bash-completion: Tab autocompletion"
 )
 source=(
   "${pkgname}-${pkgver}.tar.gz::https://github.com/GoogleContainerTools/${pkgname}/archive/v${pkgver}.tar.gz"
@@ -49,8 +51,14 @@
 
   # To avoid issues deleting directories next time
   go clean --modcache
+
+  # Create completion files
+  "${srcdir}/gopath/bin/${pkgname}" completion bash > "${srcdir}/${pkgname}-completion.bash"
+  "${srcdir}/gopath/bin/${pkgname}" completion zsh > "${srcdir}/${pkgname}-completion.zsh"
 }
 
 package() {
   install -Dm755 "${srcdir}/gopath/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+  install -Dm644 "${srcdir}/${pkgname}-completion.bash" "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+  install -Dm644 "${srcdir}/${pkgname}-completion.zsh" "${pkgdir}/usr/share/zsh/site-functions/_skaffold"
 }



More information about the arch-commits mailing list