29 lines
1.0 KiB
Plaintext
29 lines
1.0 KiB
Plaintext
# Contributor: Stefan Reimer <stefan@zero-downtime.net>
|
|
# Maintainer: Stefan Reimer <stefan@zero-downtime.net>
|
|
pkgname=ecr-credential-provider
|
|
pkgver=1.28.1
|
|
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"
|
|
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 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="
|
|
b9adc389be9301dc4be36c6bf546f354b9f2895cbad13d28d074dbab77f9aecec8d5fd02590d21c2a4acc91b559371adfe9702898c7880d92aea6657b315a539 ecr-credential-provider-1.28.1.tar.gz
|
|
"
|