summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Gwosdz2021-02-19 15:39:54 +0100
committerJosh Gwosdz2021-02-19 15:39:54 +0100
commita67b65d80a52fdedab04d62fed65dd46bfbfb0ca (patch)
tree3f888a34f13041ee6302dfdad1fcbf851ef0a208
downloadaur-a67b65d80a52fdedab04d62fed65dd46bfbfb0ca.tar.gz
initialize with 4.6.17
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore4
-rw-r--r--Makefile4
-rw-r--r--PKGBUILD27
4 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6dfa921f6a5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = openshift-client-bin
+ pkgdesc = Client tools for OpenShift, binary release
+ pkgver = 4.6.17
+ pkgrel = 1
+ url = https://github.com/openshift/oc
+ arch = x86_64
+ license = Apache
+ provides = oc
+ conflicts = okd-client-bin
+ conflicts = origin-client
+ conflicts = origin-client-bin
+ source = https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.6.17/openshift-client-linux.tar.gz
+ sha256sums = af367edf30b61876b2c763958796bde30fbc99e14f83ef2e3c4e72b53eb0efcc
+
+pkgname = openshift-client-bin
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..69907adb6d0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+*.tar.gz
+*.tar.zst \ No newline at end of file
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000000..7d8a779c923
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+.PHONY: update-srcinfo
+update-srcinfo:
+ makepkg --printsrcinfo > .SRCINFO
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1460fcbc8ea
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Josh Gwosdz <jgwosdz at redhat dot com>
+pkgname=openshift-client-bin
+pkgver=4.6.17
+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=("https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${pkgver}/openshift-client-linux.tar.gz")
+
+sha256sums=('af367edf30b61876b2c763958796bde30fbc99e14f83ef2e3c4e72b53eb0efcc')
+
+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/local/bin/oc"
+}