diff options
author | Carl Smedstad | 2022-01-01 17:01:03 +0100 |
---|---|---|
committer | Carl Smedstad | 2022-01-01 17:34:44 +0100 |
commit | 885871e58538b1426741235a8e8c408af3f604b2 (patch) | |
tree | 3aa70f46c8253493c0465bc9bc374e09ceeba766 | |
parent | bd958475cc5d58e01c4cec56e9ef61afe963d446 (diff) | |
download | aur-885871e58538b1426741235a8e8c408af3f604b2.tar.gz |
Update to version 0.0.10 & take over maintenance
Specifically:
* Add conflicts to package kubelogin - executable has the same name.
* Add check stage.
* Install LICENSE as is proper for MIT licenses.
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 48 |
3 files changed, 36 insertions, 28 deletions
@@ -1,14 +1,14 @@ pkgbase = azure-kubelogin pkgdesc = A Kubernetes credential (exec) plugin implementing azure authentication - pkgver = 0.0.9 + pkgver = 0.0.10 pkgrel = 1 url = https://github.com/Azure/kubelogin arch = x86_64 license = MIT - makedepends = go makedepends = git - source = git+https://github.com/Azure/kubelogin.git#tag=v0.0.9 - md5sums = SKIP + makedepends = go + conflicts = kubelogin + source = azure-kubelogin-0.0.10::git+https://github.com/Azure/kubelogin.git#tag=v0.0.10 + sha256sums = SKIP pkgname = azure-kubelogin - diff --git a/.gitignore b/.gitignore index 9ce802f73c9f..f71c635dafda 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ -*.pkg.tar* -*.log +* +!.gitignore +!PKGBUILD +!.SRCINFO @@ -1,30 +1,36 @@ -#Maintainer: William Aass Dahlen <cznk@protonmail.com> +# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com> +# Contributor: William Aass Dahlen <cznk@protonmail.com> pkgname=azure-kubelogin -pkgver=0.0.9 +_pkgname=kubelogin +pkgver=0.0.10 pkgrel=1 -pkgdesc='A Kubernetes credential (exec) plugin implementing azure authentication' +pkgdesc="A Kubernetes credential (exec) plugin implementing azure authentication" arch=('x86_64') -license=('MIT') url="https://github.com/Azure/kubelogin" -makedepends=( - "go" - "git" -) -source=( - "git+https://github.com/Azure/kubelogin.git#tag=v$pkgver" - ) - -md5sums=('SKIP') - -build(){ - cd kubelogin - make +license=('MIT') +makedepends=('git' 'go') +conflicts=('kubelogin') + +source=("$pkgname-$pkgver::git+$url.git#tag=v$pkgver") +sha256sums=('SKIP') + +build() { + cd "$pkgname-$pkgver" + + make +} + +check() { + cd "$pkgname-$pkgver" + + make test } -package(){ +package() { + cd "$pkgname-$pkgver" - cd kubelogin/bin/linux_amd64/ - install -Dm755 kubelogin $pkgdir/usr/bin/kubelogin - + binary_dir="bin/$(go env GOOS)_$(go env GOARCH)" + install -Dm755 "$binary_dir/kubelogin" $pkgdir/usr/bin/kubelogin + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |