mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 01:02:26 +01:00
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
|
pkgname=cilium-cli
|
|
pkgver=0.12.5
|
|
pkgrel=1
|
|
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 CGO_ENABLED=0
|
|
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" \
|
|
-o cilium \
|
|
./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/completions/cilium.fish
|
|
install -Dm644 cilium.zsh \
|
|
"$pkgdir"/usr/share/zsh/site-functions/_cilium
|
|
}
|
|
|
|
sha512sums="
|
|
37befa9f8b7f51315bec07c57713a1c8ebed89eef2c62308b025a02e41fecba2fbb5fd5b48c019c52f0f061d8744d3ab47b375607634a4aeb9a712bbd264f169 cilium-cli-0.12.5.tar.gz
|
|
"
|