Skip to content

Instantly share code, notes, and snippets.

@dnaeon
Last active December 15, 2023 07:46
Show Gist options
  • Save dnaeon/629b2281f7e6cf07c66479475f034087 to your computer and use it in GitHub Desktop.
Save dnaeon/629b2281f7e6cf07c66479475f034087 to your computer and use it in GitHub Desktop.
operator-sdk-bin (Arch Linux)
# Maintainer: Marin Atanasov Nikolov <[email protected]>
pkgname=operator-sdk-bin
pkgver=1.32.0
pkgrel=1
pkgdesc='SDK for building Kubernetes applications'
arch=('x86_64')
url='https://github.com/operator-framework/operator-sdk'
license=('Apache')
makedepends=()
depends=('glibc')
provides=('operator-sdk')
conflicts=('operator-sdk' 'operator-sdk-git')
source=(
"operator-sdk::https://github.com/operator-framework/operator-sdk/releases/download/v${pkgver}/operator-sdk_linux_amd64"
"helm-operator::https://github.com/operator-framework/operator-sdk/releases/download/v${pkgver}/helm-operator_linux_amd64"
)
sha256sums=(
'39f3d31529c49906bec8e1e3c017f536ad13faa994f02288782d9742452d4a65'
'acb3f234ffd4f8f134914dd06da9f006f07a36eef25adccd5de99e32ae1e8ec5'
)
noextract=('operator-sdk' 'helm-operator')
validpgpkeys=()
package() {
chmod 0755 "${srcdir}/operator-sdk" "${srcdir}/helm-operator"
install -Dsm755 "${srcdir}/operator-sdk" "${pkgdir}/usr/bin/operator-sdk"
${srcdir}/operator-sdk completion bash | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/operator-sdk"
${srcdir}/operator-sdk completion zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_operator-sdk"
install -Dsm755 "${srcdir}/helm-operator" "${pkgdir}/usr/bin/helm-operator"
${srcdir}/helm-operator completion bash | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/helm-operator"
${srcdir}/helm-operator completion zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_helm-operator"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment