Files
k0sctl-bin/PKGBUILD
Toni Tauro 016725588b chore(update): v0.17.5
Signed-off-by: Toni Tauro <eye@eyenx.ch>
2024-04-10 09:57:55 +02:00

24 lines
1021 B
Bash

# Maintainer: Toni Tauro <eye@eyenx.ch>
# Co-Maintainer: Lukas Grossar <lukasgrossar@gmail.com>
pkgname=k0sctl-bin
pkgver=0.17.5
pkgrel=1
pkgdesc="A bootstrapping and management tool for k0s clusters."
arch=('x86_64')
url="https://github.com/k0sproject/k0sctl"
license=('Apache')
source=("k0sctl-linux-x64-$pkgver::https://github.com/k0sproject/k0sctl/releases/download/v${pkgver}/k0sctl-linux-x64")
sha256sums=('af3296f9b0155c39db8470df8765f66ccb24dfe95ecc7a9744bb5c647b14b8c5')
options=(!strip)
provides=(k0sctl)
conflicts=(k0sctl)
package() {
install -Dm 755 "$srcdir/k0sctl-linux-x64-$pkgver" "$pkgdir/usr/bin/k0sctl"
"$pkgdir/usr/bin/k0sctl" completion --shell bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/k0sctl"
"$pkgdir/usr/bin/k0sctl" completion --shell zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_k0sctl"
"$pkgdir/usr/bin/k0sctl" completion --shell fish | install -Dm644 /dev/stdin "$pkgdir/usr/share/fish/vendor_completions.d/k0sctl.fish"
}