# Template file for 'akonadi-import-wizard'
pkgname=akonadi-import-wizard
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 kf6-kcoreaddons kf6-kdoctools qt6-base qt6-tools
 gettext kf6-kconfig kf6-kauth-tools"
makedepends="kf6-kcontacts-devel mailcommon-devel mailimporter-devel messagelib-devel
 kcalutils-devel kf6-kdoctools-devel kf6-kconfig-devel kf6-kauth-devel"
short_desc="Import data from other mail clients to KMail"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://community.kde.org/KDE_PIM"
distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
checksum=7a4b44ced24cea5c7666b47250f259ff330ed491225d2974acb938cb0f7d5680

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

akonadi-import-wizard-devel_package() {
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove "usr/lib/*.so"
	}
}
