aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/bandwhich/template
blob: 6877f17368479a155c3a24dff9180c83aa85911b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Template file for 'bandwhich'
pkgname=bandwhich
version=0.22.2
revision=1
build_style=cargo
short_desc="Terminal bandwidth utilization tool"
maintainer="Marcin Puc <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=4c41719549e05dbaac1bc84828269e59b2f2032e76ae646da9b9e3b87e5a5fd1

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
}