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-07-18 18:58:33 +00:00
|
|
|
pkgver=1.29.5
|
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
|
2024-04-19 13:39:25 +00:00
|
|
|
make VERSION="v$pkgver" GOFLAGS="-buildmode=pie -v" GOLDFLAGS="-extldflags=-static -w -s" ecr-credential-provider
|
2022-07-12 11:15:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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-07-18 18:58:33 +00:00
|
|
|
4ffe2c2f4cdd42d0fb20dc1937088c89b4e7cf816493c8a89f16d95f8090faf780e9e60ffe1c38ffde2f74593f9c6b77927f38c4443aa62e44c7eb35c333017c ecr-credential-provider-1.29.5.tar.gz
|
2023-04-26 17:22:52 +00:00
|
|
|
"
|