From 037a9bf75c1ae6b12e1b7d553bec1e01405b6d89 Mon Sep 17 00:00:00 2001 From: desolate <...> Date: Tue, 23 Jun 2026 10:06:49 +0300 Subject: [PATCH] add yazi package template --- templates/yazi/template | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 templates/yazi/template diff --git a/templates/yazi/template b/templates/yazi/template new file mode 100644 index 0000000..b953b8b --- /dev/null +++ b/templates/yazi/template @@ -0,0 +1,30 @@ +# Template file for 'yazi' +pkgname=yazi +version=26.5.6 +revision=1 +build_style=cargo +hostmakedepends="pkg-config" +makedepends="oniguruma-devel lua54-devel" +depends="nerd-fonts-symbols-ttf" +short_desc="Blazing fast terminal file manager, based on async I/O" +maintainer="Bnyro " +license="MIT" +homepage="https://yazi-rs.github.io" +changelog="https://github.com/sxyazi/yazi/releases" +distfiles="https://github.com/sxyazi/yazi/archive/refs/tags/v${version}.tar.gz" +checksum=a18445df86a20068f7b17609d12d6f635de488958579ae7a2b143a244ba7e63f + +export VERGEN_GIT_SHA="${version}_${revision}" +# enable the generation of shell auto completions +export YAZI_GEN_COMPLETIONS=true + +do_install() { + vbin target/${RUST_TARGET}/release/yazi + vbin target/${RUST_TARGET}/release/ya + vcompletion yazi-boot/completions/yazi.bash bash + vcompletion yazi-boot/completions/yazi.fish fish + vcompletion yazi-boot/completions/_yazi zsh + vinstall assets/yazi.desktop 644 /usr/share/applications + vinstall assets/logo.png 644 /usr/share/pixmaps yazi.png + vlicense LICENSE +}