[arch-commits] Commit in hcloud/trunk (PKGBUILD _hcloud.zsh)

Sven-Hendrik Haase svenstaro at archlinux.org
Sat Jun 16 21:29:38 UTC 2018


    Date: Saturday, June 16, 2018 @ 21:29:38
  Author: svenstaro
Revision: 343411

upgpkg: hcloud 1.5.0-2

Add zsh completions

Added:
  hcloud/trunk/_hcloud.zsh
Modified:
  hcloud/trunk/PKGBUILD

-------------+
 PKGBUILD    |   15 +++++++++------
 _hcloud.zsh |    2 ++
 2 files changed, 11 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-16 21:13:00 UTC (rev 343410)
+++ PKGBUILD	2018-06-16 21:29:38 UTC (rev 343411)
@@ -1,9 +1,9 @@
 # Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
 # Contributor: Konrad Tegtmeier <konrad.tegtmeier+aur at 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"
 }

Added: _hcloud.zsh
===================================================================
--- _hcloud.zsh	                        (rev 0)
+++ _hcloud.zsh	2018-06-16 21:29:38 UTC (rev 343411)
@@ -0,0 +1,2 @@
+#compdef hcloud
+source <(hcloud completion zsh)



More information about the arch-commits mailing list