# Template file for 'btdu' pkgname=btdu version=0.4.1 revision=1 # fails to build on musl due to different argument types for ioctl # struct packing seems to differ on i686 archs and therefore d-btrfs fails archs=x86_64 hostmakedepends="dmd dub" makedepends="zlib-devel ncurses-devel" short_desc="Sampling disk usage profiler for btrfs" maintainer="Siddhartha Menon " license="GPL-2.0-only" homepage="https://github.com/CyberShadow/btdu" distfiles="https://github.com/CyberShadow/btdu/archive/v${version}.tar.gz" checksum=265c63ee82067f6b5dc44b47c9ec58be5e13c654f31035c60a7e375ffa4082c9 nocross="dmd compilation fails on cross" pre_configure() { vsed -e 's/dependency "ae" version="==0.0.3184"/dependency "ae" version="==0.0.3228"/g' -i dub.sdl vsed -e 's/"ae": "0.0.3184"/"ae": "0.0.3228"/g' -i dub.selections.json } do_build() { dub build -b release } do_install() { vbin btdu vman btdu.1 }