Package Details: oc4-bin 4.6.16-1

Git Clone URL: https://aur.archlinux.org/oc4-bin.git (read-only, click to copy)
Package Base: oc4-bin
Description: openshift client binary releases
Upstream URL: https://github.com/openshift/oc
Licenses: Apache
Provides: oc4
Submitter: erdii
Maintainer: None
Last Packager: erdii
Votes: 0
Popularity: 0.000000
First Submitted: 2021-02-10 09:25
Last Updated: 2021-02-10 09:29

Latest Comments

erdii commented on 2021-02-19 14:46

thank you for your feedback @alwyn!

i have created this package: https://aur.archlinux.org/packages/openshift-client-bin

with your requested changes.


FYI: I will abandon and disown this package (oc4-bin) in some weeks!

alwyn commented on 2021-02-18 14:34

Why do you provide the oc binary as oc4? Instead, wouldn't it be better to conflict this package with okd-client-bin?

I think it would be best to use okd-client-bin as a base, and just change the url/hashes.

Something like:

diff --git a/PKGBUILD b/PKGBUILD
index 401240b..6fac38b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,10 @@
 # Maintainer: Josh Gwosdz <jgwosdz at redhat dot com>
-pkgname=oc4-bin
+pkgname=openshift-client-bin
 pkgver=4.6.16
 pkgrel=1
-pkgdesc="openshift client binary releases"
+pkgdesc="Client tools for OpenShift, binary release"
 arch=("x86_64")
-provides=("oc4")
+provides=("oc")
 conflicts=("okd-client-bin" "origin-client" "origin-client-bin")
 url="https://github.com/openshift/oc"
 license=("Apache")
 depends=()
@@ -13,6 +13,15 @@ source=("https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${pkgver}/ope

 sha256sums=("af367edf30b61876b2c763958796bde30fbc99e14f83ef2e3c4e72b53eb0efcc")

+prepare() {
+  # generate completion
+  $srcdir/oc completion bash > $srcdir/bash-completions
+  $srcdir/oc completion zsh > $srcdir/zsh-completions
+}
+
 package() {
-  install -Dm755 "${srcdir}/oc" "${pkgdir}/usr/local/bin/oc4"
+  install -D -m644 $srcdir/bash-completions $pkgdir/usr/share/bash-completion/completions/oc
+  install -D -m644 $srcdir/zsh-completions $pkgdir/usr/share/zsh/site-functions/_oc
+  install -Dm755 ${srcdir}/oc ${pkgdir}/usr/bin/oc
 }