Skip to content
Snippets Groups Projects
Commit 332b7393 authored by Biswapriyo Nath's avatar Biswapriyo Nath :fox: Committed by J0WI
Browse files

testing/yazi: Install shell completions

parent d9a891ca
No related branches found
Tags v3.13.0_rc1
1 merge request!63131testing/yazi: Install shell completions
Pipeline #225408 skipped
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz> # Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=yazi pkgname=yazi
pkgver=0.2.4 pkgver=0.2.4
pkgrel=0 pkgrel=1
pkgdesc="Blazing fast terminal file manager written in Rust, based on async I/O" pkgdesc="Blazing fast terminal file manager written in Rust, based on async I/O"
url="https://yazi-rs.github.io" url="https://yazi-rs.github.io"
arch="all" arch="all"
...@@ -12,7 +12,11 @@ makedepends=" ...@@ -12,7 +12,11 @@ makedepends="
cargo-auditable cargo-auditable
lua5.4-dev lua5.4-dev
" "
subpackages="$pkgname-doc" subpackages="$pkgname-doc
$pkgname-bash-completion
$pkgname-fish-completion
$pkgname-zsh-completion
"
source=" source="
$pkgname-$pkgver.tar.gz::https://github.com/sxyazi/yazi/archive/refs/tags/v$pkgver.tar.gz $pkgname-$pkgver.tar.gz::https://github.com/sxyazi/yazi/archive/refs/tags/v$pkgver.tar.gz
system-lua.patch system-lua.patch
...@@ -25,7 +29,7 @@ prepare() { ...@@ -25,7 +29,7 @@ prepare() {
} }
build() { build() {
cargo auditable build --release --frozen YAZI_GEN_COMPLETIONS=true cargo auditable build --release --frozen
} }
check() { check() {
...@@ -34,7 +38,9 @@ check() { ...@@ -34,7 +38,9 @@ check() {
package() { package() {
install -Dm755 target/release/yazi "$pkgdir"/usr/bin/yazi install -Dm755 target/release/yazi "$pkgdir"/usr/bin/yazi
install -Dm644 yazi-boot/completions/yazi.bash "$pkgdir"/usr/share/bash-completion/completions/yazi
install -Dm644 yazi-boot/completions/yazi.fish "$pkgdir"/usr/share/fish/vendor_completions.d/yazi.fish
install -Dm644 yazi-boot/completions/_yazi "$pkgdir"/usr/share/zsh/site-functions/_yazi
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment