void-packages/srcpkgs/fd/template

29 lines
863 B
Bash

# Template file for 'fd'
pkgname=fd
version=10.1.0
revision=1
build_style=cargo
build_helper=qemu
short_desc="Simple, fast and user-friendly alternative to find"
maintainer="Orphaned <orphan@voidlinux.org>"
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=ee4b2403388344ff60125c79ff25b7895a170e7960f243ba2b5d51d2c3712d97
if [ "${XBPS_BUILD_ENVIRONMENT}" = "void-packages-ci" ]; then
make_check_args="-- --skip test_type_executable"
fi
post_install() {
vman doc/fd.1
vlicense LICENSE-MIT
vcompletion contrib/completion/_fd zsh
for shell in bash fish; do
vtargetrun ${DESTDIR}/usr/bin/fd --gen-completions ${shell} > fd.${shell}
vcompletion fd.${shell} ${shell}
done
}