# Contributor: Stefan Reimer # Maintainer: Stefan Reimer pkgname=ecr-credential-provider pkgver=1.31.4 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=" d66898e34f2a0d4504ace6bb685897a360a315fd81371fbb2db727e65b4207cd728d07a3313f34985a0a1af26865fbbdde310aa88ee4af77d6ab02c354a6f223 ecr-credential-provider-1.31.4.tar.gz "