# Maintainer: Aurel Canciu # Maintainer: Hidde Beydals pkgname=flux-bin pkgver=0.16.1 pkgrel=1 pkgdesc="Open and extensible continuous delivery solution for Kubernetes" url="https://fluxcd.io/" arch=("x86_64" "armv6h" "armv7h" "aarch64") license=("APACHE") optdepends=('kubectl: for apply actions on the Kubernetes cluster', '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=( ebad6c8a0629e92e384d1cd216218cdea1812caa42395c1adb5b83dfc2c1444b ) sha256sums_armv6h=( 12ed0526d37c031145105ce5514f40abfd128cf5e253964be46976abb940cd24 ) sha256sums_armv7h=( 12ed0526d37c031145105ce5514f40abfd128cf5e253964be46976abb940cd24 ) sha256sums_aarch64=( 6a6ec1aa6e41de79c213cb679a38b15ac7fc8fb47a82967c198a160f571606c4 ) _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}" }