Date: Friday, September 18, 2020 @ 19:06:17 Author: anthraxx Revision: 710723
upgpkg: kubectx 0.9.1-2: fix dependency on bash Modified: kubectx/trunk/PKGBUILD ----------+ PKGBUILD | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-09-18 18:59:19 UTC (rev 710722) +++ PKGBUILD 2020-09-18 19:06:17 UTC (rev 710723) @@ -1,35 +1,32 @@ # Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> # Contributor: Ian Beringer <i...@ianberinger.com> pkgname=kubectx pkgver=0.9.1 -pkgrel=1 -license=('Apache') +pkgrel=2 pkgdesc='Utility to manage and switch between kubectl contexts and Kubernetes namespaces' -makedepends=() -depends=('python') +url='https://github.com/ahmetb/kubectx' arch=('any') -url='https://github.com/ahmetb/kubectx' -source=("${url}/archive/v${pkgver}.tar.gz") +license=('Apache') +depends=('bash') +provides=('kubectx' 'kubens') +source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") sha512sums=('f9872bb2a0a354d6e4b07715dea434482fb61f34914354d0d458e723d87b41e09eb94fb302185631700aad09a29268e00925016fa1b2d4c80f30402f35b6e6e4') -provides=('kubectx' 'kubens') +b2sums=('b6d79d5cc7a1a4b55e76f9402d97629bf5ca5e97ab8c42d492640108019e8cc7011cb27422e327e6abbed9a59f684c634378871d7c7145618280a0588bc228ec') package() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${pkgname}-${pkgver}" - install -D -p -m 755 ./kubectx "${pkgdir}/usr/share/${pkgname}/kubectx" - install -D -p -m 755 ./kubens "${pkgdir}/usr/share/${pkgname}/kubens" + install -Dm 755 -p kubectx kubens -t "${pkgdir}/usr/bin" - # completion for bash & zsh & fish - 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" - install -D -p -m 644 ./completion/kubectx.fish "${pkgdir}/usr/share/fish/vendor_completions.d/kubectx.fish" - install -D -p -m 644 ./completion/kubens.fish "${pkgdir}/usr/share/fish/vendor_completions.d/kubens.fish" + # completion + install -Dm 644 -p completion/kubectx.bash "${pkgdir}/usr/share/bash-completion/completions/kubectx" + install -Dm 644 -p completion/kubens.bash "${pkgdir}/usr/share/bash-completion/completions/kubens" + install -Dm 644 -p completion/kubectx.zsh "${pkgdir}/usr/share/zsh/site-functions/_kubectx" + install -Dm 644 -p completion/kubens.zsh "${pkgdir}/usr/share/zsh/site-functions/_kubens" + install -Dm 644 -p completion/kubectx.fish "${pkgdir}/usr/share/fish/vendor_completions.d/kubectx.fish" + install -Dm 644 -p completion/kubens.fish "${pkgdir}/usr/share/fish/vendor_completions.d/kubens.fish" +} - # 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" -} +# vim: ts=2 sw=2 et: