[arch-commits] Commit in bat/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Wed Mar 3 21:48:50 UTC 2021
Date: Wednesday, March 3, 2021 @ 21:48:49
Author: arodseth
Revision: 879529
Add completion for fish, ref FS#59826
Modified:
bat/trunk/PKGBUILD
----------+
PKGBUILD | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-03-03 21:48:47 UTC (rev 879528)
+++ PKGBUILD 2021-03-03 21:48:49 UTC (rev 879529)
@@ -3,7 +3,7 @@
pkgname=bat
pkgver=0.18.0
-pkgrel=1
+pkgrel=2
pkgdesc='Cat clone with syntax highlighting and git integration'
arch=(x86_64)
url='https://github.com/sharkdp/bat'
@@ -27,13 +27,17 @@
install -Dm644 $pkgname/LICENSE-MIT \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
+ cd $pkgname/target/release/build
+
# Package the man page
- find $pkgname/target/release -name bat.1 -type f \
- -exec install -Dm644 {} "$pkgdir/usr/share/man/man1/bat.1" \;
+ find . -name bat.1 -type f -exec install -Dm644 {} \
+ "$pkgdir/usr/share/man/man1/bat.1" \;
# Package the zsh completion file (not in zsh-completions yet)
- find $pkgname/target/release -name bat.zsh -type f \
- -exec install -Dm644 {} "$pkgdir/usr/share/zsh/site-functions/_bat" \;
+ find . -name bat.zsh -type f -exec install -Dm644 {} \
+ "$pkgdir/usr/share/zsh/site-functions/_bat" \;
- # The fish completion file is included in the fish package
+ # Package the fish completion
+ find . -name bat.fish -type f -exec install -Dm644 {} \
+ "$pkgdir/usr/share/fish/vendor_completions.d/bat.fish" \;
}
More information about the arch-commits
mailing list