void-packages/srcpkgs/fd/template

22 lines
683 B
Bash

# Template file for 'fd'
pkgname=fd
version=8.0.0
revision=1
build_style=cargo
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"
distfiles="https://github.com/sharkdp/fd/archive/v${version}.tar.gz"
checksum=fba93204c10266317e0981914c630b08e12cd322c75ff2a2e504ff1dce17d557
post_install() {
vman doc/fd.1
vlicense LICENSE-MIT
cd "target/${RUST_TARGET}/release/build/fd-find-"*/out
vinstall fd.bash 644 usr/share/bash-completion/completions fd
vinstall fd.fish 644 usr/share/fish/vendor_completions.d
vinstall _fd 644 usr/share/zsh/site-functions
}