# Template file for 'bandwhich'
pkgname=bandwhich
version=0.23.0
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=58b94588ec919fd802fc25cd209084ecc9acdfd99d5478d5ec76670774ff5886

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
}
