void-packages/srcpkgs/fd/template

26 lines
767 B
Bash

# Template file for 'fd'
pkgname=fd
version=8.5.3
revision=1
build_style=cargo
build_helper=qemu
short_desc="Simple, fast and user-friendly alternative to find"
maintainer="Jerry Tegno <jerrytegno@gmail.com>"
license="Apache-2.0, MIT"
homepage="https://github.com/sharkdp/fd"
changelog="https://raw.githubusercontent.com/sharkdp/fd/master/CHANGELOG.md"
distfiles="https://github.com/sharkdp/fd/archive/refs/tags/v${version}.tar.gz"
checksum=45a6444cf5bbfcf4ee4836d9a2ff2106d31e67da77341183392225badc87cd35
post_install() {
vman doc/fd.1
vlicense LICENSE-MIT
vcompletion contrib/completion/_fd zsh
local fd="${DESTDIR}/usr/bin/fd"
for shell in bash fish; do
vtargetrun ${fd} --gen-completions ${shell} > fd.${shell}
vcompletion fd.${shell} ${shell}
done
}