# Template file for 'bandwhich'
pkgname=bandwhich
version=0.23.1
revision=1
build_style=cargo
short_desc="Terminal bandwidth utilization tool"
maintainer="tranzystorekk <tranzystorek.io@protonmail.com>"
license="MIT"
homepage="https://github.com/imsnif/bandwhich"
changelog="https://raw.githubusercontent.com/imsnif/bandwhich/main/CHANGELOG.md"
distfiles="https://github.com/imsnif/bandwhich/archive/refs/tags/v${version}.tar.gz"
checksum=aafb96d059cf9734da915dca4f5940c319d2e6b54e2ffb884332e9f5e820e6d7

export BANDWHICH_GEN_DIR="${XBPS_BUILDDIR}/${pkgname}-${version}/gen"

pre_build() {
	mkdir gen
}

post_install() {
	vlicense LICENSE.md
	vcompletion gen/bandwhich.bash bash
	vcompletion gen/bandwhich.fish fish
	vcompletion gen/_bandwhich zsh
	vman gen/bandwhich.1
}
