aports/testing/kubeseal/APKBUILD
2025-04-20 20:12:07 +00:00

32 lines
1,002 B
Text

# Maintainer: Thiago Perrotta <tbperrotta@gmail.com>
pkgname=kubeseal
pkgver=0.29.0
pkgrel=0
pkgdesc="A Kubernetes controller and tool for one-way encrypted Secrets"
url="https://github.com/bitnami-labs/sealed-secrets"
arch="all"
license="Apache-2.0"
makedepends="go"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/bitnami-labs/sealed-secrets/archive/v$pkgver/kubeseal-$pkgver.tar.gz"
options="net"
builddir="$srcdir/sealed-secrets-$pkgver"
build() {
cd cmd/kubeseal
export GOFLAGS="$GOFLAGS -mod=readonly"
go build -ldflags="-linkmode=external -X=main.VERSION=v$pkgver" .
}
check() {
go test -skip TestHttpCert ./cmd/kubeseal/... ./pkg/...
}
package() {
install -Dm755 "cmd/kubeseal/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha512sums="
8c435baf0ff12e57ecababd056fa7a2cfee3fcc93a3a64c1e5da9eeef6e5292312ef611972d83c8ae3dd749d5f06b155bc4c57b39f9a701315f45fdc34ad5ad0 kubeseal-0.29.0.tar.gz
"