# Template file for 'kmail'
pkgname=kmail
version=24.08.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 python3 qt6-base qt6-tools
 gettext kf6-kcmutils kf6-kdoctools kf6-kconfig kf6-kcoreaddons"
makedepends="kcalutils-devel kf6-knotifyconfig-devel kontactinterface-devel
 kf6-kparts-devel ktnef-devel libkleo-devel libksieve-devel mailcommon-devel
 messagelib-devel qt6-location-devel qt6-webchannel-devel qt6-webengine-devel
 kf6-kstatusnotifieritem-devel"
depends="kdepim-runtime kmail-account-wizard mariadb akonadi-import-wizard
 pim-data-exporter"
short_desc="KDE Mail Client"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, GFDL-1.2-or-later"
homepage="https://kde.org/applications/en/internet/org.kde.kmail2"
distfiles="${KDE_SITE}/release-service/${version}/src/kmail-${version}.tar.xz"
checksum=ab5abd0578f1996daf3a9fb674f39491544ce33e7efb3ca1fff15ef6f5731072

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

do_check() {
	broken="akonadi-sqlite-kmcomposerwintest"
	broken+="|akonadi-sqlite-tagselectdialogtest"
	broken+="|akonadi-sqlite-kmcommandstest"
	broken+="|akonadi-sqlite-unifiedmailboxmanagertest"
	ctest -E "($broken)"
}
