[arch-commits] Commit in (kubectx kubectx/repos kubectx/trunk kubectx/trunk/PKGBUILD)
Christian Rebischke
shibumi at archlinux.org
Wed May 22 14:30:22 UTC 2019
Date: Wednesday, May 22, 2019 @ 14:30:22
Author: shibumi
Revision: 468463
added kubectx
Added:
kubectx/
kubectx/repos/
kubectx/trunk/
kubectx/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Added: kubectx/trunk/PKGBUILD
===================================================================
--- kubectx/trunk/PKGBUILD (rev 0)
+++ kubectx/trunk/PKGBUILD 2019-05-22 14:30:22 UTC (rev 468463)
@@ -0,0 +1,33 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Contributor: Ian Beringer <ian at ianberinger.com>
+
+pkgname=kubectx
+pkgver=0.6.3
+pkgrel=2
+license=('Apache')
+pkgdesc='Utility to manage and switch between kubectl contexts and Kubernetes namespaces'
+makedepends=()
+depends=('python')
+arch=('any')
+url='https://github.com/ahmetb/kubectx'
+source=("${url}/archive/v${pkgver}.tar.gz")
+sha512sums=('f39eb7bc448f4444f4e3bfd1bb1258187615d51f1c4fa60d826b794b9ca70983')
+provides=('kubectx' 'kubens')
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ install -D -p -m 755 ./kubectx "${pkgdir}/usr/share/${pkgname}/kubectx"
+ install -D -p -m 755 ./kubens "${pkgdir}/usr/share/${pkgname}/kubens"
+
+ # completion for bash & zsh
+ install -D -p -m 644 ./completion/kubectx.bash "${pkgdir}/usr/share/bash-completion/completions/kubectx"
+ install -D -p -m 644 ./completion/kubens.bash "${pkgdir}/usr/share/bash-completion/completions/kubens"
+ install -D -p -m 644 ./completion/kubectx.zsh "${pkgdir}/usr/share/zsh/site-functions/_kubectx"
+ install -D -p -m 644 ./completion/kubens.zsh "${pkgdir}/usr/share/zsh/site-functions/_kubens"
+
+ # symlink binaries
+ mkdir "${pkgdir}/usr/bin"
+ ln -s "/usr/share/${pkgname}/kubectx" "${pkgdir}/usr/bin/kubectx"
+ ln -s "/usr/share/${pkgname}/kubens" "${pkgdir}/usr/bin/kubens"
+}
More information about the arch-commits
mailing list