upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / kubectx / trunk / PKGBUILD
blob3b70660f6394d6a85635c986b641b189e80f74f8
1 # Maintainer: Christian Rebischke <chris.rebischke@archlinux.org>
2 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
3 # Contributor: Ian Beringer <ian@ianberinger.com>
5 pkgname=kubectx
6 pkgver=0.9.4
7 pkgrel=1
8 pkgdesc='Utility to manage and switch between kubectl contexts and Kubernetes namespaces'
9 url='https://github.com/ahmetb/kubectx'
10 arch=('any')
11 license=('Apache')
12 depends=('bash' 'kubectl')
13 provides=('kubectx' 'kubens')
14 source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
15 sha512sums=('edb5a05d5b32e486a227e8a4c98864a8dd1e0f3c325fd63a9c3f10ba3ca7a57420d3b1dda9d7674cdbf18fea9cfafbfabdc19c4e15ab1a2a18af967d8fd50997')
16 b2sums=('127eb69c46f2d331c4854b7d935d0fb10c9bc08219d021f5a4b6710b0408eee586d584da47acb8eb415a3472655bc8c8e2e0748eba2a449d8c8dc458c98d32bf')
18 package() {
19   cd "${pkgname}-${pkgver}"
21   install -Dm 755 -p kubectx kubens -t "${pkgdir}/usr/bin"
23   # completion
24   install -Dm 644 -p completion/kubectx.bash "${pkgdir}/usr/share/bash-completion/completions/kubectx"
25   install -Dm 644 -p completion/kubens.bash "${pkgdir}/usr/share/bash-completion/completions/kubens"
26   install -Dm 644 -p completion/kubectx.zsh "${pkgdir}/usr/share/zsh/site-functions/_kubectx"
27   install -Dm 644 -p completion/kubens.zsh "${pkgdir}/usr/share/zsh/site-functions/_kubens"
28   install -Dm 644 -p completion/kubectx.fish "${pkgdir}/usr/share/fish/vendor_completions.d/kubectx.fish"
29   install -Dm 644 -p completion/kubens.fish "${pkgdir}/usr/share/fish/vendor_completions.d/kubens.fish"
32 # vim: ts=2 sw=2 et: