diff options
author | Simon Legner | 2019-12-31 17:17:21 +0100 |
---|---|---|
committer | Simon Legner | 2019-12-31 17:17:21 +0100 |
commit | ac64664d90dce4f9b3aa58c5b7a964b361e0ee77 (patch) | |
tree | 113ae9e7b7aacfb8e67bf63398349bf6c64d8484 | |
parent | 189e852f407c0be0004c954a12bed32a4e2d662c (diff) | |
download | aur-ac64664d90dce4f9b3aa58c5b7a964b361e0ee77.tar.gz |
upgpkg: lab-bin 0.17.2-2
Add bash and zsh completion.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 9 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = lab-bin pkgdesc = A hub-like tool for GitLab (pre-built binary release) pkgver = 0.17.2 - pkgrel = 1 + pkgrel = 2 url = https://zaquestion.github.io/lab/ arch = x86_64 license = custom:Unlicense @@ -4,7 +4,7 @@ pkgname=lab-bin pkgver=0.17.2 -pkgrel=1 +pkgrel=2 pkgdesc="A hub-like tool for GitLab (pre-built binary release)" arch=('x86_64') url="https://zaquestion.github.io/lab/" @@ -16,7 +16,14 @@ conflicts=("${pkgname%-bin}-git" "${pkgname%-bin}") source=("https://github.com/zaquestion/${pkgname%-bin}/releases/download/v$pkgver/lab_${pkgver}_linux_amd64.tar.gz") sha512sums=('d7d91e03f1030a740d440abaa0dc48eb54029807b921dad6b497c2641f54b295f916892a623286f39f53468a2477c327f51794b82dd55c763b62fd62b1bd0db9') +build () { + ./lab completion bash > completion.bash + ./lab completion zsh > completion.zsh +} + package() { install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-bin}"/LICENSE install -Dm755 lab "$pkgdir"/usr/bin/lab + install -Dm644 completion.bash "$pkgdir/usr/share/bash-completion/completions/lab" + install -Dm644 completion.zsh "$pkgdir/usr/share/zsh/site-functions/_lab" } |