Orhun Parmaksız pushed to branch main at Arch Linux / Packaging / Packages / 
hexyl


Commits:
38ed32ee by Tiago de Paula at 2026-08-16T16:54:55-03:00
Generate shell completions

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -26,6 +26,10 @@ build() {
   cd ${pkgname}-${pkgver}
   cargo build --release --frozen
   pandoc -s -f markdown -t man -o "doc/${pkgname}.1" "doc/${pkgname}.1.md"
+  mkdir ../completions
+  target/release/${pkgname} --completion bash > ../completions/${pkgname}.bash
+  target/release/${pkgname} --completion fish > ../completions/${pkgname}.fish
+  target/release/${pkgname} --completion zsh > ../completions/${pkgname}.zsh
 }
 
 check() {
@@ -39,6 +43,9 @@ package() {
   install -Dm 644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}"
   install -Dm 644 README.md -t "$pkgdir/usr/share/doc/${pkgname}"
   install -Dm 644 "doc/$pkgname.1" -t "$pkgdir/usr/share/man/man1"
+  install -Dm0644 ../completions/${pkgname}.bash 
"${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+  install -Dm0644 ../completions/${pkgname}.fish -t 
"${pkgdir}/usr/share/fish/vendor_completions.d"
+  install -Dm0644 ../completions/${pkgname}.zsh 
"${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
 }
 
 # vim: ts=2 sw=2 et:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/hexyl/-/commit/38ed32eee339b3a33d1a47e308a92914905ba342

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/hexyl/-/commit/38ed32eee339b3a33d1a47e308a92914905ba342
You're receiving this email because of your account on gitlab.archlinux.org. 
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications 
| Help: https://gitlab.archlinux.org/help


Reply via email to