blob: 621b0e75f6111a756f0b8b510cb3d6d80aa42d86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Maintainer: Josh Gwosdz <jgwosdz at redhat dot com>
pkgname=openshift-client-bin
pkgver=4.17.5
pkgrel=1
pkgdesc="Client tools for OpenShift, binary release"
arch=("x86_64")
provides=("oc")
conflicts=("okd-client-bin" "origin-client" "origin-client-bin")
url="https://github.com/openshift/oc"
license=("Apache")
depends=()
source=("$pkgname-$pkgver.tar.gz::https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${pkgver}/openshift-client-linux.tar.gz")
sha256sums=('551a51b8d3ce076d6d73268866b4b072a7e01d78a261dd2a62a32e0d7a2884cf')
prepare() {
# generate completion
$srcdir/oc completion bash > $srcdir/bash-completions
$srcdir/oc completion zsh > $srcdir/zsh-completions
}
package() {
install -Dm644 $srcdir/bash-completions $pkgdir/usr/share/bash-completion/completions/oc
install -Dm644 $srcdir/zsh-completions $pkgdir/usr/share/zsh/site-functions/_oc
install -Dm755 "${srcdir}/oc" "${pkgdir}/usr/bin/oc"
}
|