George Hu pushed to branch main at Arch Linux / Packaging / Packages / fnm


Commits:
7a5fd61c by George Hu at 2026-02-10T15:00:13+08:00
Refactor commands of shell completion generation

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -25,13 +25,10 @@ build() {
 }
 
 package() {
-  install -Dm755 "$srcdir/$pkgname-$pkgver/target/release/$pkgname" 
"$pkgdir/usr/bin/$pkgname"
+  cd "$pkgname-$pkgver/target/release"
+  install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
 
-  mkdir -p \
-    "$pkgdir"/usr/share/bash-completion/completions \
-    "$pkgdir"/usr/share/fish/vendor_completions.d \
-    "$pkgdir"/usr/share/zsh/site-functions
-  "$pkgdir/usr/bin/$pkgname" completions --shell bash > 
"$pkgdir"/usr/share/bash-completion/completions/$pkgname
-  "$pkgdir/usr/bin/$pkgname" completions --shell fish > 
"$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish
-  "$pkgdir/usr/bin/$pkgname" completions --shell zsh > 
"$pkgdir"/usr/share/zsh/site-functions/_$pkgname
+  install -Dm644 <("./$pkgname" completions --shell bash) 
"$pkgdir"/usr/share/bash-completion/completions/$pkgname
+  install -Dm644 <("./$pkgname" completions --shell fish) 
"$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish
+  install -Dm644 <("./$pkgname" completions --shell zsh) 
"$pkgdir"/usr/share/zsh/site-functions/_$pkgname
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/fnm/-/commit/7a5fd61c177060f499d22165a6a04b98ceb13285

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/fnm/-/commit/7a5fd61c177060f499d22165a6a04b98ceb13285
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to