2022-07-12 11:15:51 +00:00
|
|
|
# Contributor: Stefan Reimer <stefan@zero-downtime.net>
|
|
|
|
# Maintainer: Stefan Reimer <stefan@zero-downtime.net>
|
|
|
|
pkgname=ecr-credential-provider
|
2024-04-03 14:27:05 +00:00
|
|
|
pkgver=1.28.1
|
2022-07-12 11:15:51 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2023-04-26 17:22:52 +00:00
|
|
|
sha512sums="
|
2024-04-03 14:27:05 +00:00
|
|
|
b9adc389be9301dc4be36c6bf546f354b9f2895cbad13d28d074dbab77f9aecec8d5fd02590d21c2a4acc91b559371adfe9702898c7880d92aea6657b315a539 ecr-credential-provider-1.28.1.tar.gz
|
2023-04-26 17:22:52 +00:00
|
|
|
"
|