Last active
June 16, 2018 18:54
-
-
Save svenstaro/1aaf65c8da08cae4669e539159a3b2b7 to your computer and use it in GitHub Desktop.
hcloud changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#compdef hcloud | |
source <(hcloud completion zsh) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: PKGBUILD | |
=================================================================== | |
--- PKGBUILD (revision 343408) | |
+++ PKGBUILD (working copy) | |
@@ -1,9 +1,9 @@ | |
# Maintainer: Christian Rebischke <chris.rebischke@archlinux.org> | |
# Contributor: Konrad Tegtmeier <konrad.tegtmeier+aur@gmail.com> | |
-pkgname='hcloud' | |
-pkgver='1.5.0' | |
-pkgrel='1' | |
+pkgname=hcloud | |
+pkgver=1.5.0 | |
+pkgrel=2 | |
pkgdesc="CLI for Hetzner Cloud" | |
arch=('x86_64') | |
url='https://github.com/hetznercloud/cli' | |
@@ -15,8 +15,10 @@ | |
depends=('glibc') | |
provides=('hcloud') | |
_hcloud_commit='4d565ac75dd7cd9063add48e0de0b907619594af' | |
-source=("git+https://github.com/hetznercloud/cli#commit=${_hcloud_commit}") | |
-sha512sums=('SKIP') | |
+source=("git+https://github.com/hetznercloud/cli#commit=${_hcloud_commit}" | |
+ _hcloud.zsh) | |
+sha512sums=('SKIP' | |
+ '1964c7445200327ee71974591516bdcc3a00751ff3407891a7401ad486b4a0ee51bfc8c0e8d0e074b788936f365a435322bd4c9b2b527f6621b0965b60477897') | |
prepare(){ | |
export GOPATH="${srcdir}" | |
@@ -43,5 +45,6 @@ | |
cd src/github.com/hetznercloud/cli | |
install -Dsm755 cli/hcloud "${pkgdir}/usr/bin/hcloud" | |
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
- install -Dm644 "cli/${pkgname}-completion.bash" "$pkgdir/usr/share/bash-completion/completions/$pkgname" | |
+ install -Dm644 "cli/${pkgname}-completion.bash" "${pkgdir}/usr/share/bash-completion/completions/$pkgname" | |
+ install -Dm644 "${srcdir}"/_hcloud.zsh "${pkgdir}/usr/share/zsh/site-functions/_hcloud" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment