summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Konrad Tegtmeier-Rottach2019-05-01 17:21:27 +0200
committerJ. Konrad Tegtmeier-Rottach2019-05-01 17:21:27 +0200
commit59d367f1ae30907437515bd6e52ae9bc680b29fd (patch)
tree3416aa3637864a6f2e5da8953613245b4e102647
parentf91a7bb9269c14174c9868cf23243c233404f060 (diff)
downloadaur-59d367f1ae30907437515bd6e52ae9bc680b29fd.tar.gz
add autogenerated zsh autocompletion
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD11
2 files changed, 8 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 72169ffbbb5..dd386dcae46 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = cockroachdb-bin
pkgdesc = An open source, survivable, strongly consistent, scale-out SQL database
pkgver = 19.1.0
- pkgrel = 1
+ pkgrel = 2
url = https://www.cockroachlabs.com/
arch = x86_64
license = Apache
diff --git a/PKGBUILD b/PKGBUILD
index 2e2e6f76da3..3de125036cb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=cockroachdb-bin
conflicts=('cockroachdb')
provides=('cockroachdb')
pkgver=19.1.0
-pkgrel=1
+pkgrel=2
pkgdesc="An open source, survivable, strongly consistent, scale-out SQL database"
arch=('x86_64')
url="https://www.cockroachlabs.com/"
@@ -39,9 +39,11 @@ sha256sums=('4ddeca598404f6e99ecc3528c3af409184a78849552c85aa9d8d85aa72e2c994'
'SKIP')
build() {
- # generate bash completion
+ # generate shell completion
"${srcdir}/cockroach-v${pkgver}.linux-amd64/cockroach" \
- gen autocomplete --out "${srcdir}/cockroach.bash"
+ gen autocomplete bash --out "${srcdir}/cockroach.bash"
+ "${srcdir}/cockroach-v${pkgver}.linux-amd64/cockroach" \
+ gen autocomplete zsh --out "${srcdir}/cockroach.zsh"
# generate man pages
"${srcdir}/cockroach-v${pkgver}.linux-amd64/cockroach" \
@@ -65,8 +67,9 @@ package() {
install -d "${pkgdir}/usr/share/man/man1/"
install -m644 "${srcdir}"/man/*.1 "${pkgdir}/usr/share/man/man1/"
- # bash completion
+ # shell completion
install -Dm644 cockroach.bash "${pkgdir}/usr/share/bash-completion/completions/cockroach"
+ install -Dm644 cockroach.zsh "${pkgdir}/usr/share/zsh/site-functions/_cockroach"
# licenses
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"