diff --git a/srcpkgs/btdu/template b/srcpkgs/btdu/template new file mode 100644 index 0000000000..8dab0a8f61 --- /dev/null +++ b/srcpkgs/btdu/template @@ -0,0 +1,25 @@ +# Template file for 'btdu' +pkgname=btdu +version=0.3.0 +revision=1 +# druntime does not implement ioctl on musl in dmd-2.098.0 +# 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=6019f20862ac5ed84d115ffcc5305d000714ac2324d81671a4961efc79edc9f2 +nocross="dmd compilation fails on cross" + +do_build() { + dub build -b release +} + +do_install() { + vbin btdu + vman btdu.1 +}