# Template file for 'konqueror'
pkgname=konqueror
version=24.12.1
revision=1
build_style=cmake
configure_args="-DBUILD_WITH_QT6=ON -DBUILD_TESTING=OFF
 -DKF6_HOST_TOOLING=/usr/lib/cmake
 -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins
 -DKDE_INSTALL_QMLDIR=lib/qt6/qml
 -DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt6/mkspecs/modules"
hostmakedepends="extra-cmake-modules python3 qt6-base qt6-tools kf6-kdoctools
 kf6-kcoreaddons kf6-kconfig gettext kf6-kcmutils hunspell"
makedepends="qt6-base-private-devel qt6-webengine-devel qt6-webchannel-devel
 kf6-karchive-devel kf6-kdesu-devel kf6-kcrash-devel kf6-kdbusaddons-devel
 kf6-kiconthemes-devel kf6-ktextwidgets-devel kf6-kparts-devel hunspell-devel
 kf6-kcmutils-devel plasma-activities-devel"
short_desc="KDE File Manager & Web Browser"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://kde.org/applications/internet/org.kde.konqueror"
distfiles="${KDE_SITE}/release-service/${version}/src/konqueror-${version}.tar.xz"
checksum=9d0fb0922b76626fe80492c860a426e6d61bcd68eefbc6276ee72e56b4c1b4d4

if [ "$XBPS_WORDSIZE$XBPS_WORDSIZE" != "64$XBPS_TARGET_WORDSIZE" ]; then
	broken="Qt6 WebEngine"
fi

do_check() {
	:
}

konqueror-devel_package() {
	short_desc+=" - development files"
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
	}
}
