void-packages/srcpkgs/hyperfine/template

23 lines
719 B
Bash

# Template file for 'hyperfine'
pkgname=hyperfine
version=1.14.0
revision=1
build_style=cargo
short_desc="Command-line benchmarking tool"
maintainer="Wilson Birney <wpb@360scada.com>"
license="MIT, Apache-2.0"
homepage="https://github.com/sharkdp/hyperfine"
changelog="https://raw.githubusercontent.com/sharkdp/hyperfine/master/CHANGELOG.md"
distfiles="https://github.com/sharkdp/hyperfine/archive/refs/tags/v${version}.tar.gz"
checksum=59018c22242dd2ad2bd5fb4a34c0524948b7921d02aa79419ccec4c1ffd3da14
post_install() {
vlicense LICENSE-MIT
vman doc/hyperfine.1
cd "target/${RUST_TARGET}/release/build/hyperfine-"*/out
vcompletion hyperfine.bash bash
vcompletion hyperfine.fish fish
vcompletion _hyperfine zsh
}