# Template file for 'qdirstat'
pkgname=qdirstat
version=1.7.1
revision=1
build_style=qmake
hostmakedepends="qt5-qmake qt5-host-tools"
makedepends="zlib-devel qt5-devel"
short_desc="Qt-based directory statistics (KDirStat without any KDE)"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="GPL-2.0-only"
homepage="https://github.com/shundhammer/qdirstat"
distfiles="https://github.com/shundhammer/qdirstat/archive/${version}.tar.gz"
checksum=fb40181972092d80994d3d04802c43298b70a21f1e636d5490a2bfbd1cb407d9

post_install() {
	vman man/qdirstat.1
}

qdirstat-cache-writer_package() {
	short_desc+=" - headless scanner"
	depends="perl"
	pkg_install() {
		vmove usr/bin/qdirstat-cache-writer
		vman man/qdirstat-cache-writer.1
	}
}