Files
velero-bin/PKGBUILD
2020-05-27 09:16:52 +02:00

21 lines
785 B
Bash

# Maintainer: Lukas Grossar <lukas.grossar@gmail.com>
pkgname=velero-bin
pkgver=1.4.0
pkgrel=1
pkgdesc="Backup client for Kubernetes"
arch=('x86_64')
url="https://github.com/heptio/velero"
depends=('kubectl')
replaces=('ark-bin')
license=('Apache')
source=("https://github.com/heptio/velero/releases/download/v${pkgver}/velero-v${pkgver}-linux-amd64.tar.gz")
sha256sums=('1e8afc6631d36e9fabf618777e00705b7044ade1cab9b02953f237b777f46b91')
package() {
install -Dm 755 "$srcdir/velero-v${pkgver}-linux-amd64/velero" -t "$pkgdir/usr/bin"
"$pkgdir/usr/bin/velero" completion bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/velero"
"$pkgdir/usr/bin/velero" completion zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_velero"
}