alpine-overlay/v3.15/ecr-credential-provider/APKBUILD

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.22.0
pkgrel=1
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"
arch="x86_64 aarch64 armv7 x86"
builddir="$srcdir/cloud-provider-aws-$pkgver"
build() {
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="
6253694167a390920fa55378ad1c7e5d4be7ec84fbd27e4d9aefe79e46bbef1ad617ffe8bda9fdbfd2a0353b9fb6d71231dc130f7a235729bc427eccd9080e94 cloud-provider-aws-1.22.0.tar.gz
"