# Template file for 'korganizer'
pkgname=korganizer
version=24.12.1
revision=1
build_style=cmake
configure_args="-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 qt6-base qt6-tools kf6-kdoctools
 kf6-kcmutils kf6-kcoreaddons kf6-kconfig gettext"
makedepends="akonadi-calendar-devel akonadi-notes-devel incidenceeditor-devel
 qt6-multimedia-devel kf6-kholidays-devel kontactinterface-devel"
short_desc="Calendar and scheduling Program"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://kde.org/applications/en/office/org.kde.korganizer"
distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
checksum=f3fee3893ccb52703875acfd4809c89dc25930e3b3bee2f2b15b4bc371694a24

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

do_check() {
	cd build
	# akonadi-sqlite-koeventpopupmenutest requires dbus session
	ctest -E akonadi-sqlite-koeventpopupmenutest
}
