# Maintainer: David Birks pkgname=aws-iam-authenticator pkgver=0.5.2 pkgrel=1 pkgdesc='A tool to use AWS IAM credentials to authenticate to a Kubernetes cluster' arch=('x86_64' 'aarch64') url='https://github.com/kubernetes-sigs/aws-iam-authenticator' license=('Apache') makedepends=('go') conflicts=('aws-iam-authenticator-bin' 'aws-iam-authenticator-git') source=("$pkgname-$pkgver.tar.gz::https://github.com/kubernetes-sigs/aws-iam-authenticator/archive/v$pkgver.tar.gz") sha512sums=('a16a630096ed3223d156e1586f02ffcfcf256f12530ba565f5f1f649c83418cd71ea66c554c9e1edd1b44dd745d9393f4ed4c63c62677ae973e9bd9a1a24fe5b') build() { cd $pkgname-$pkgver go build \ --trimpath \ --ldflags "-X main.version=$pkgver" \ ./cmd/aws-iam-authenticator } package() { install -Dm 755 "$srcdir/$pkgname-$pkgver/$pkgname" "$pkgdir/usr/bin/$pkgname" }