void-packages/srcpkgs/yazi/template

28 lines
907 B
Bash

# Template file for 'yazi'
pkgname=yazi
version=0.3.0
revision=1
build_style=cargo
make_install_args="--path yazi-fm"
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 <bnyro@tutanota.com>"
license="MIT"
homepage="https://yazi-rs.github.io"
distfiles="https://github.com/sxyazi/yazi/archive/refs/tags/v${version}.tar.gz"
checksum=0a0c1583accca16759392f258367156a2c36fb0b1d37152b07e1aa5239c531ff
export VERGEN_GIT_SHA="${version}_${revision}"
# enable the generation of shell auto completions
export YAZI_GEN_COMPLETIONS=true
post_install() {
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
vlicense LICENSE
}