mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-28 08:52:07 +01:00
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
|
pkgname=cilium-cli
|
|
pkgver=0.19.2
|
|
pkgrel=0
|
|
pkgdesc="CLI to install, manage and troubleshoot Kubernetes clusters running Cilium"
|
|
url="https://cilium.io/"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
makedepends="go"
|
|
subpackages="
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/cilium/cilium-cli/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -v \
|
|
-ldflags "-X github.com/cilium/cilium-cli/internal/cli/cmd.Version=v$pkgver" \
|
|
./cmd/cilium
|
|
|
|
for shell in bash fish zsh; do
|
|
./cilium completion $shell > cilium.$shell
|
|
done
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 cilium -t "$pkgdir"/usr/bin/
|
|
|
|
install -Dm644 cilium.bash \
|
|
"$pkgdir"/usr/share/bash-completion/completions/cilium
|
|
install -Dm644 cilium.fish \
|
|
"$pkgdir"/usr/share/fish/vendor_completions.d/cilium.fish
|
|
install -Dm644 cilium.zsh \
|
|
"$pkgdir"/usr/share/zsh/site-functions/_cilium
|
|
}
|
|
|
|
sha512sums="
|
|
6de1c937e9dbd58a7dab11eabbe0448b8d40945a7d5fb66193a66ea903f2ffc346aa9d043e34afdb73b591dffebd50231f0f0b346a7b48f102c37f546cce5bfa cilium-cli-0.19.2.tar.gz
|
|
"
|