[arch-commits] Commit in tekton-cli/trunk (PKGBUILD)
Christian Rebischke
shibumi at archlinux.org
Sun Feb 21 01:22:17 UTC 2021
Date: Sunday, February 21, 2021 @ 01:22:16
Author: shibumi
Revision: 867532
upgpkg: tekton-cli 0.15.0-2 Add completions for bash and zsh
Modified:
tekton-cli/trunk/PKGBUILD
----------+
PKGBUILD | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-21 00:51:27 UTC (rev 867531)
+++ PKGBUILD 2021-02-21 01:22:16 UTC (rev 867532)
@@ -2,7 +2,7 @@
pkgname=tekton-cli
pkgver=0.15.0
-pkgrel=1
+pkgrel=2
pkgdesc="CLI for interacting with the Tekton CI/CD pipeline"
arch=('x86_64')
url="https://github.com/tektoncd/cli"
@@ -22,6 +22,8 @@
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
go build -ldflags="-linkmode=external" .
chmod +x ./tkn
+ ./tkn completion bash > "${pkgname}-completion.bash"
+ ./tkn completion zsh > "${pkgname}-completion.zsh"
}
check() {
@@ -32,4 +34,6 @@
package() {
cd "${pkgname}/cmd/tkn"
install -Dsm755 ./tkn "${pkgdir}/usr/bin/tkn"
+ install -Dm644 "${pkgname}-completion.bash" "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+ install -Dm644 "${pkgname}-completion.zsh" "${pkgdir}/usr/share/zsh/site-functions/_tkn"
}
More information about the arch-commits
mailing list