mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-02 23:31:34 +01:00
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
|
pkgname=hubble-cli
|
|
pkgver=0.12.2
|
|
pkgrel=0
|
|
pkgdesc="CLI for the distributed networking and security observability platform"
|
|
url="https://github.com/cilium/hubble"
|
|
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/hubble/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/hubble-$pkgver"
|
|
|
|
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/hubble/pkg.Version=$pkgver" \
|
|
-o hubble
|
|
|
|
for shell in bash fish zsh; do
|
|
./hubble completion $shell > hubble.$shell
|
|
done
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 hubble -t "$pkgdir"/usr/bin/
|
|
|
|
install -Dm644 hubble.bash \
|
|
"$pkgdir"/usr/share/bash-completion/completions/hubble
|
|
install -Dm644 hubble.fish \
|
|
"$pkgdir"/usr/share/fish/vendor_completions.d/hubble.fish
|
|
install -Dm644 hubble.zsh \
|
|
"$pkgdir"/usr/share/zsh/site-functions/_hubble
|
|
}
|
|
|
|
sha512sums="
|
|
37c2ff2ea3604e5bc07686f826befa5d06ec7ab7119737690caf628df8ab99eb1de4f955ed77669bf628512c3f4172e9130c6ae91ed4eb274f4bf376c316831c hubble-cli-0.12.2.tar.gz
|
|
"
|