# Maintainer: Vianney Bouchaud pkgname=k8s-ldap-auth pkgdesc="Kubernetes webhook token authentication plugin implementation using ldap." pkgver=2.0.1 pkgrel=1 arch=('x86_64' 'armv7l' 'armv7h' 'aarch64') url="https://github.com/vbouchaud/k8s-ldap-auth" license=('MPL2') makedepends=( 'go' ) source=( "${pkgname}-${pkgver}.tar.gz::https://github.com/vbouchaud/k8s-ldap-auth/archive/v${pkgver}.tar.gz" ) sha256sums=( "2b1dc9fe80ffa06593d981722e644c7a59805138349e08f824775200096bb58a" ) build() { export GOPATH="$srcdir"/gopath export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" export CGO_ENABLED=1 cd "$srcdir/$pkgname-$pkgver" make VERSION=v$pkgver k8s-ldap-auth } package() { install -D -m0755 "${srcdir}/$pkgname-$pkgver/k8s-ldap-auth" "${pkgdir}/usr/bin/k8s-ldap-auth" }