2020-03-20 21:31:21 +00:00
|
|
|
# Maintainer: Sergey Yakovlev <selfuryon@gmail.com>
|
|
|
|
|
|
|
|
pkgname=clusterctl-bin
|
|
|
|
pkgdesc="Cluster API Tool"
|
2023-08-17 08:20:13 +00:00
|
|
|
pkgver=1.5.0
|
2020-03-20 21:31:21 +00:00
|
|
|
pkgrel=1
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://cluster-api.sigs.k8s.io/"
|
|
|
|
license=('Apache')
|
|
|
|
optdepends=('kubectl: to manage the cluster')
|
2020-04-29 21:50:00 +00:00
|
|
|
provides=('clusterctl')
|
2021-05-14 06:59:25 +00:00
|
|
|
source=("clusterctl-linux-amd64-v$pkgver::https://github.com/kubernetes-sigs/cluster-api/releases/download/v$pkgver/clusterctl-linux-amd64")
|
2023-08-17 08:20:13 +00:00
|
|
|
sha256sums=('9d533c42b86ee53ab8e99d4e5c8e1c4160b08b4ddb0ce666247458d8cef7aea8')
|
2020-03-20 21:31:21 +00:00
|
|
|
|
|
|
|
package() {
|
2023-01-16 13:11:00 +00:00
|
|
|
install -Dm0755 "$srcdir/clusterctl-linux-amd64-v$pkgver" "$pkgdir/usr/bin/clusterctl"
|
2023-01-16 13:19:35 +00:00
|
|
|
install -dm0755 "$pkgdir/usr/share/zsh/site-functions/"
|
2023-01-16 13:11:00 +00:00
|
|
|
install -dm0755 "$pkgdir/usr/share/bash-completion/completions/"
|
2023-01-16 13:19:35 +00:00
|
|
|
"$pkgdir/usr/bin/clusterctl" completion zsh > "$pkgdir/usr/share/zsh/site-functions/_clusterctl"
|
2023-01-16 13:11:00 +00:00
|
|
|
"$pkgdir/usr/bin/clusterctl" completion bash > "$pkgdir/usr/share/bash-completion/completions/clusterctl"
|
2020-03-20 21:31:21 +00:00
|
|
|
}
|