pkgname=falcoctl pkgver=0.10.0 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" makedepends="bash go" 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=" d4b029f9b49de1cde431cadb2948e9b0e9e5aa4b9105f5f404814c410d6cf9af2bd52c52cebec45743f369ba7bded535c94a4a04eec40d0cba63a385b1531926 falcoctl-0.10.0.tar.gz "