# Template file for 'kvantum'
pkgname=kvantum
version=1.1.8
revision=1
build_wrksrc=Kvantum
build_style=cmake
configure_args="-DENABLE_QT5=ON"
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 kf6-kwindowsystem-devel"
depends="hicolor-icon-theme"
short_desc="SVG-based theme engine for Qt5/Qt6, KDE and LXQt"
maintainer="Rutpiv <roger_freitas@live.com>"
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=170c0ad369b7f5cc083969f61241498e11721f3da346c750730c2d0c6f3771f5

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
}

kvantum-doc_package() {
	short_desc+=" - documentation"
	pkg_install() {
		vmove usr/share/doc
	}
}
