# Template file for 'btdu'
pkgname=btdu
version=0.6.1
revision=1
hostmakedepends="ldc dub"
makedepends="zlib-devel ncurses-devel"
short_desc="Sampling disk usage profiler for btrfs"
maintainer="Siddhartha Menon <siddharthamenon+void@outlook.com>"
license="GPL-2.0-only"
homepage="https://github.com/CyberShadow/btdu"
distfiles="https://github.com/CyberShadow/btdu/archive/v${version}.tar.gz"
checksum=20a9beb6a5b02199df553eb1b24ce53d895ed0a70d3ec258f8294206ab7ca475
nocross="dmd compilation fails on cross"

do_build() {
	dub build --compiler=ldc2 -b release
}

do_install() {
	vbin btdu
	vman btdu.1
}
