# Template file for 'merkuro'
pkgname=merkuro
version=26.04.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 gettext qt6-tools qt6-base
 kf6-kcoreaddons kf6-kconfig kf6-kpackage qt6-declarative-host-tools"
makedepends="qt6-base-private-devel qt6-declarative-private-devel
 qt6-location-devel qt6-svg-devel
 kf6-kcalendarcore-devel kf6-kconfigwidgets-devel kf6-kcontacts-devel
 kf6-kcoreaddons-devel
 kf6-kdbusaddons-devel
 kf6-ki18n-devel
 kf6-kiconthemes-devel
 kf6-kitemmodels-devel
 kf6-kirigami-devel
 kf6-kio-devel
 kf6-kpackage-devel kf6-kpeople-devel kf6-kwindowsystem-devel kf6-qqc2-desktop-style-devel
 kirigami-addons-devel
 libkleo-devel
 gpgmepp-devel
 messagelib-devel
 kf6-akonadi-devel
 akonadi-calendar-devel
 akonadi-contacts-devel
 akonadi-mime-devel
 akonadi-search-devel
 kcalutils-devel
 kidentitymanagement-devel
 mailcommon-devel
 kmailtransport-devel
 mimetreeparser-devel
 kmbox-devel
 kmime6-devel
 libkdepim-devel
 pimcommon-devel
 kf6-kholidays-devel
 eventviews-devel"
depends="kf6-qqc2-desktop-style kdepim-runtime qt6-location
 kirigami-addons"
checkdepends="dbus kdepim-runtime"
short_desc="Calendar application using Akonadi"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://invent.kde.org/pim/merkuro"
distfiles="${KDE_SITE}/release-service/${version}/src/merkuro-${version}.tar.xz"
checksum=619dba797c7c80137ed698fafa1118ad01b00ff5486840c6b4895a561382274c

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

do_check() {
	cd build
	dbus-run-session ctest --output-on-failure --force-new-ctest-process
}

kalendar_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - transitional dummy package"
	metapackage=yes
}
