2021-07-20 12:54:36 +00:00

47 lines
1.1 KiB
Plaintext

# Contributor: Adrian L Lange <alpine@p3lim.net>
# Contributor: Charles Wimmer <charles@wimmer.net>
# Contributor: Dermot Bradley <dermot_bradley@yahoo.com>
# Maintainer: Dermot Bradley <dermot_bradley@yahoo.com>
pkgname=step-cli
pkgver=0.16.1
pkgrel=0
pkgdesc="Zero trust swiss army knife that integrates with step-ca for automated certificate management"
url="https://github.com/smallstep/cli"
arch="all"
license="Apache-2.0"
makedepends="
bash
go
go-bindata
"
subpackages="
$pkgname-bash-completion
$pkgname-zsh-completion
"
source="
$pkgname-$pkgver.tar.gz::https://github.com/smallstep/cli/archive/v$pkgver.tar.gz
"
builddir="$srcdir/cli-$pkgver"
build() {
make build
}
check() {
make test
}
package() {
make DESTDIR="$pkgdir" install
install -Dm644 autocomplete/bash_autocomplete \
"$pkgdir"/usr/share/bash-completion/completions/step
install -Dm644 autocomplete/zsh_autocomplete \
"$pkgdir"/usr/share/zsh/site-functions/_step
}
sha512sums="
f3a54a0f2ad60152356dedab2522a57d2b36e7566312c876b9fb231e59ad7c2680dae42eef343cc1337fb0ab3307840765b49382b27df16fa1bc44c29af5dd73 step-cli-0.16.1.tar.gz
"