# Template file for 'konqueror'
pkgname=konqueror
version=26.04.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-kwindowsystem kf6-kcoreaddons kf6-kconfig gettext kf6-kcmutils hunspell"
makedepends="qt6-base-private-devel qt6-webengine-devel qt6-webchannel-devel
 kf6-kwindowsystem-devel kf6-kguiaddons-devel kf6-ki18n-devel
 kf6-sonnet-devel kf6-kcodecs-devel kf6-kdoctools-devel kf6-kxmlgui-devel
 kf6-kwallet-devel kf6-knotifications-devel kf6-kjobwidgets-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=0049726058e323d46fd1eb6271b30cae6289d828baa4508db60ab0b2f477a4f9

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

do_check() {
	:
}

konqueror-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision} kf6-kxmlgui-devel
	 kf6-kconfig-devel kf6-kio-devel kf6-kcoreaddons-devel
	 kf6-kservice-devel kf6-kparts-devel"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
	}
}
