# Contributor: Adrian L Lange # Contributor: Charles Wimmer # Contributor: Dermot Bradley # Maintainer: Dermot Bradley pkgname=step-cli pkgver=0.24.4 pkgrel=2 pkgdesc="Zero trust swiss army knife that integrates with step-ca for automated certificate management" url="https://github.com/smallstep/cli" arch="all !riscv64" # ftbfs license="Apache-2.0" makedepends=" bash go go-bindata " subpackages=" $pkgname-bash-completion $pkgname-zsh-completion " source=" $pkgname-$pkgver-2.tar.gz::https://github.com/smallstep/cli/archive/refs/tags/v$pkgver.tar.gz 01-fix-tests.patch " builddir="$srcdir/cli-$pkgver" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" 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=" 5ab69c160c1284042ce9465cc640d472dabc28a9d8786a0783d7a1bbeb1376176689d3637a633a8d9c476cb9cb948aac5f36eae47034d70077d6c71c2e2c389a step-cli-0.24.4-2.tar.gz 3902f18ca36ee379c7d67fa990d505c43fcbdedb3dab5a1a42ea356be45961c57e81f5906eb93b93d92abbe3a6f7ae70d8a92407460886920c1d9a3a58bf81f7 01-fix-tests.patch "