[arch-commits] Commit in soft-serve/trunk (PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Wed Aug 10 07:30:21 UTC 2022


    Date: Wednesday, August 10, 2022 @ 07:30:20
  Author: grawlinson
Revision: 1265023

upgpkg: soft-serve 0.4.0-2; FS#75567

Add shell completions.

Modified:
  soft-serve/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-10 07:23:00 UTC (rev 1265022)
+++ PKGBUILD	2022-08-10 07:30:20 UTC (rev 1265023)
@@ -3,7 +3,7 @@
 
 pkgname=soft-serve
 pkgver=0.4.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A self-hosted Git server for the command line'
 arch=('x86_64')
 url='https://github.com/charmbracelet/soft-serve'
@@ -67,6 +67,11 @@
 
   # generate man page
   ./build/soft man > build/soft.1
+
+  # generate shell completion
+  for shell in bash fish zsh; do
+    ./build/soft completion "$shell" > "build/$shell.completion"
+  done
 }
 
 check() {
@@ -87,6 +92,11 @@
   # binary
   install -vDm755 -t "$pkgdir/usr/bin" build/soft
 
+  # shell completion
+  install -vDm644 build/bash.completion "$pkgdir/usr/share/bash-completion/completions/soft"
+  install -vDm644 build/fish.completion "$pkgdir/usr/share/fish/vendor_completions.d/soft.fish"
+  install -vDm644 build/zsh.completion "$pkgdir/usr/share/zsh/site-functions/_soft"
+
   # man page
   install -vDm644 -t "$pkgdir/usr/share/man/man1" build/soft.1
 



More information about the arch-commits mailing list