# Contributor: Stefan Reimer # Maintainer: Stefan Reimer pkgname=ecr-credential-provider pkgver=1.30.3 pkgrel=0 pkgdesc="AWS Kubernetes ecr-credential-provider" url="https://github.com/kubernetes/cloud-provider-aws" arch="x86_64 aarch64 armv7 x86" license="Apache-2.0" makedepends="go bash" options="!check chmod-clean net" source="$pkgname-$pkgver.tar.gz::https://github.com/kubernetes/cloud-provider-aws/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/cloud-provider-aws-$pkgver" build() { unset LDFLAGS # the default abuild LDFLAGS break the go linker make VERSION="v$pkgver" GOFLAGS="-buildmode=pie -v" GOLDFLAGS="-extldflags=-static -w -s" ecr-credential-provider } package() { mkdir -p "$pkgdir"/usr/libexec/kubernetes/kubelet-plugins install -Dm755 "$builddir/ecr-credential-provider" "$pkgdir"/usr/libexec/kubernetes/kubelet-plugins } sha512sums=" aa351cd531e452dd4ccead4a591a9161a25737ada93a7317c5c181c3d4fe55b279e94b686d8c03665ebee01191129a52b01c9dabfba7075c5e9bde52e6a341c8 ecr-credential-provider-1.30.3.tar.gz "