[arch-commits] Commit in atuin/trunk (PKGBUILD)
Orhun Parmaksiz
orhun at gemini.archlinux.org
Wed Dec 22 21:21:40 UTC 2021
Date: Wednesday, December 22, 2021 @ 21:21:40
Author: orhun
Revision: 1082919
upgpkg: atuin 0.8.0-2: include shell completions
Modified:
atuin/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-22 21:19:16 UTC (rev 1082918)
+++ PKGBUILD 2021-12-22 21:21:40 UTC (rev 1082919)
@@ -3,7 +3,7 @@
pkgname=atuin
pkgver=0.8.0
-pkgrel=1
+pkgrel=2
pkgdesc="Magical shell history"
arch=('x86_64')
url="https://github.com/ellie/atuin"
@@ -16,11 +16,15 @@
prepare() {
cd "$pkgname-$pkgver"
cargo fetch --locked
+ mkdir completions/
}
build() {
cd "$pkgname-$pkgver"
cargo build --release --frozen
+ for sh in 'bash' 'fish' 'zsh'; do
+ "target/release/$pkgname" gen-completions -s "$sh" -o completions/
+ done
}
check() {
@@ -33,6 +37,9 @@
install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm 644 "completions/$pkgname.bash" "${pkgdir}/usr/share/bash-completion/completions/$pkgname"
+ install -Dm 644 "completions/$pkgname.fish" -t "${pkgdir}/usr/share/fish/vendor_completions.d"
+ install -Dm 644 "completions/_$pkgname" -t "${pkgdir}/usr/share/zsh/site-functions"
}
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list