diff options
author | Erich Eckner <git@eckner.net> | 2020-05-22 20:34:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-05-22 20:34:03 +0200 |
commit | ffed9421d7a66add26f93bcbd71ade3c1205c8a4 (patch) | |
tree | fee9409c2016ebfc109e507e485b98ebb744b4a6 /step-cli/PKGBUILD | |
parent | 369508d4171608b10696827e295348559be97769 (diff) | |
download | archlinuxewe-ffed9421d7a66add26f93bcbd71ade3c1205c8a4.tar.xz |
step-cli neu
Diffstat (limited to 'step-cli/PKGBUILD')
-rw-r--r-- | step-cli/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/step-cli/PKGBUILD b/step-cli/PKGBUILD new file mode 100644 index 000000000..8f6e35475 --- /dev/null +++ b/step-cli/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +pkgname=step-cli +pkgver=0.14.4 +pkgrel=1 +pkgdesc="An online certificate authority and related tools for secure automated certificate management, so you can use TLS everywhere." +arch=('i486' 'i686' 'pentium4' 'x86_64' 'armv6h' 'armv7h' 'aarch64') +makedepends=(go golangci-lint) +url="https://smallstep.com/certificates" +license=('Apache') + +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/smallstep/cli/archive/v${pkgver}.tar.gz" + "https://github.com/smallstep/cli/raw/v${pkgver}/autocomplete/bash_autocomplete" + "https://github.com/smallstep/cli/raw/v${pkgver}/autocomplete/zsh_autocomplete") +sha512sums=('2f7420bb3a9c90110534b402e6446e20dcdf239a9dbe198586ae894487db33cd06a673139393cfac02d7999f2f0fa8fb3204a2707119260119c2b948721ab191' + 'a18b7685349e54d59ca247adcac4dc95444b14352c142230df39afa651c39831c55a3dcdd8e555154e3859db835284db0e1c12cf5779bb6b2d71c9f15648f73f' + 'f507da7b7aad35d62a4df8ffcb6da3ac17f2424e9d6709d8688084de5ebb30b47e0b30fe7922fbb9747fbc2e54c282a26baadbd12c8cb89d747daec069be6b51') + +prepare() { + sed -i "s/step/${pkgname}/g" "zsh_autocomplete" +} + +build() { + cd cli-$pkgver + make -j 1 +} + +package() { + install -Dm755 "cli-$pkgver/bin/step" "$pkgdir/usr/bin/$pkgname" + install -Dm644 "cli-$pkgver/README.md" "$pkgdir/usr/share/doc/$pkgname/README.md" + install -Dm644 "bash_autocomplete" "$pkgdir/usr/share/bash-completion/completions/${pkgname}" + install -Dm644 "zsh_autocomplete" "$pkgdir/usr/share/zsh/site-functions/_${pkgname}" +} |