[arch-commits] Commit in skate/trunk (PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Wed Aug 10 07:31:26 UTC 2022
Date: Wednesday, August 10, 2022 @ 07:31:25
Author: grawlinson
Revision: 1265024
upgpkg: skate 0.2.1-3; FS#75568
Add shell completions.
Modified:
skate/trunk/PKGBUILD
----------+
PKGBUILD | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-10 07:30:20 UTC (rev 1265023)
+++ PKGBUILD 2022-08-10 07:31:25 UTC (rev 1265024)
@@ -3,7 +3,7 @@
pkgname=skate
pkgver=0.2.1
-pkgrel=2
+pkgrel=3
pkgdesc='A personal key value store'
arch=('x86_64')
url='https://github.com/charmbracelet/skate'
@@ -60,6 +60,11 @@
sed \
-i build/skate.1 \
-e "s/\"[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\"/\"$_commit_date\"/"
+
+ # generate shell completion
+ for shell in bash fish zsh; do
+ ./build/skate completion "$shell" > "build/$shell.completion"
+ done
}
check() {
@@ -74,6 +79,11 @@
# binary
install -vDm755 -t "$pkgdir/usr/bin" build/skate
+ # shell completion
+ install -vDm644 build/bash.completion "$pkgdir/usr/share/bash-completion/completions/skate"
+ install -vDm644 build/fish.completion "$pkgdir/usr/share/fish/vendor_completions.d/skate.fish"
+ install -vDm644 build/zsh.completion "$pkgdir/usr/share/zsh/site-functions/_skate"
+
# man page
install -vDm644 -t "$pkgdir/usr/share/man/man1" build/skate.1
More information about the arch-commits
mailing list