alpine-overlay/kubezero/falcoctl/APKBUILD

36 lines
941 B
Plaintext
Raw Normal View History

2023-11-08 13:00:26 +00:00
pkgname=falcoctl
2024-10-25 16:22:11 +00:00
pkgver=0.10.0
2023-11-08 13:00:26 +00:00
pkgrel=0
pkgdesc="The official CLI tool for working with Falco and its ecosystem components."
url="https://github.com/falcosecurity/falcoctl"
arch="x86_64 aarch64"
license="AGPL-3.0"
2024-04-03 14:27:05 +00:00
makedepends="bash go"
2023-11-08 13:00:26 +00:00
options="!check"
source="
$pkgname-$pkgver.tar.gz::https://github.com/falcosecurity/falcoctl/archive/refs/tags/v$pkgver.tar.gz
"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
export GOBIN="$GOPATH/bin"
build() {
make GOFLAGS="-buildmode=pie -v" GOLDFLAGS="-extldflags=-static -w -s" falcoctl
# cleanup 444 files
go clean -modcache
}
package() {
mkdir -p "$pkgdir/usr/bin"
install -Dm755 falcoctl "$pkgdir/usr/bin/falcoctl"
}
sha512sums="
2024-10-25 16:22:11 +00:00
d4b029f9b49de1cde431cadb2948e9b0e9e5aa4b9105f5f404814c410d6cf9af2bd52c52cebec45743f369ba7bded535c94a4a04eec40d0cba63a385b1531926 falcoctl-0.10.0.tar.gz
2023-11-08 13:00:26 +00:00
"