# Maintainer: Aurel Canciu # Maintainer: Hidde Beydals pkgname=flux-bin pkgver=0.39.0 pkgrel=1 pkgdesc="Open and extensible continuous delivery solution for Kubernetes" url="https://fluxcd.io/" arch=("x86_64" "armv6h" "armv7h" "aarch64") license=("APACHE") optdepends=('bash-completion: auto-completion for flux in Bash' 'zsh-completions: auto-completion for flux in ZSH') source_x86_64=( "${pkgname}-${pkgver}.tar.gz::https://github.com/fluxcd/flux2/releases/download/v${pkgver}/flux_${pkgver}_linux_amd64.tar.gz" ) source_armv6h=( "${pkgname}-${pkgver}.tar.gz::https://github.com/fluxcd/flux2/releases/download/v${pkgver}/flux_${pkgver}_linux_arm.tar.gz" ) source_armv7h=( "${pkgname}-${pkgver}.tar.gz::https://github.com/fluxcd/flux2/releases/download/v${pkgver}/flux_${pkgver}_linux_arm.tar.gz" ) source_aarch64=( "${pkgname}-${pkgver}.tar.gz::https://github.com/fluxcd/flux2/releases/download/v${pkgver}/flux_${pkgver}_linux_arm64.tar.gz" ) sha256sums_x86_64=( 11431aab00e967e93484cb4aa9936f2634726aeb8ee692eae40d2e581a305e0d ) sha256sums_armv6h=( 6434e4a743dc78a877b70259d7e0490f556f3ad0fffaf010f87722c4bbaf21a2 ) sha256sums_armv7h=( 6434e4a743dc78a877b70259d7e0490f556f3ad0fffaf010f87722c4bbaf21a2 ) sha256sums_aarch64=( 1afe196d5e5d10181b5724088848734e59d817278fce8c50b58a11dc2322afca ) _srcname=flux package() { install -Dm755 ${_srcname} "${pkgdir}/usr/bin/${_srcname}" "${pkgdir}/usr/bin/${_srcname}" completion bash | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/${_srcname}" "${pkgdir}/usr/bin/${_srcname}" completion fish | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/${_srcname}.fish" "${pkgdir}/usr/bin/${_srcname}" completion zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_${_srcname}" }