# Template file for 'kvantum'
pkgname=kvantum
version=1.0.10
revision=1
build_wrksrc=Kvantum
build_style=cmake
hostmakedepends="qt5-tools-devel qt5-host-tools qt6-tools qt6-base"
makedepends="qt5-devel qt6-base-devel qt5-svg-devel qt6-svg-devel
 qt5-x11extras-devel kwindowsystem-devel"
short_desc="SVG-based theme engine for Qt5/Qt6, KDE and LXQt"
maintainer="Giuseppe Fierro <gspe@ae-design.ws>"
license="GPL-3.0-or-later"
homepage="https://github.com/tsujan/Kvantum"
changelog="https://raw.githubusercontent.com/tsujan/Kvantum/master/Kvantum/ChangeLog"
distfiles="https://github.com/tsujan/Kvantum/archive/V${version}.tar.gz"
checksum=2ef368df6c54a3bde2097ed89341f188b6670d1b1f8d11bcb3a80138887aca12

post_configure() {
	mkdir build6
	(
		cd build6
		configure_args="-DENABLE_QT5=OFF"
		do_configure
	)
}

post_build() {
	(cd build6 && do_build)
}

post_install() {
	(cd build6 && do_install)
	vdoc doc/Theme-Config.pdf
	vdoc doc/Theme-Making.pdf
}
