Date: Thursday, January 14, 2021 @ 11:02:31 Author: shibumi Revision: 820781
push kubeseal Added: kubeseal/ kubeseal/repos/ kubeseal/trunk/ kubeseal/trunk/PKGBUILD ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Added: kubeseal/trunk/PKGBUILD =================================================================== --- kubeseal/trunk/PKGBUILD (rev 0) +++ kubeseal/trunk/PKGBUILD 2021-01-14 11:02:31 UTC (rev 820781) @@ -0,0 +1,40 @@ +# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> +# Contributor: sseneca <me at ssene dot ca> +# Contributor: ml <m...@visu.li> + +pkgname=kubeseal +_pkgname=sealed-secrets +pkgver=0.13.1 +pkgrel=3 +pkgdesc="A Kubernetes controller and tool for one-way encrypted Secrets" +arch=('x86_64') +url="https://github.com/bitnami-labs/sealed-secrets" +license=('Apache') +makedepends=('go') +depends=('glibc') +source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('a766e8f1f662aa33507d7d02016d2eefcfb5ea383ed4d4e043070b823e6d1a5de2b89c8bd7f342688745cc0744ec7a867b7b64c0451f8847bb59ba0436588974') + +build() { + cd "${_pkgname}-${pkgver}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=vendor -modcacherw" + + go build -ldflags="-linkmode=external -X=main.VERSION=v${pkgver}" ./cmd/kubeseal +} + +check() { + cd "${_pkgname}-${pkgver}" + + go test ./cmd/kubeseal/... ./pkg/... +} + +package() { + cd "${_pkgname}-${pkgver}" + + install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" +}