# Template file for 'calligra-plan'
pkgname=calligra-plan
version=3.1.0
revision=3
wrksrc="${pkgname/-/}-${version}"
build_style=cmake
hostmakedepends="extra-cmake-modules kdoctools"
makedepends="kinit-devel kcmutils-devel kdiagram-devel kholidays-devel
 khtml-devel kactivities5-devel akonadi5-devel kcontacts-devel
 threadweaver-devel akonadi-contacts-devel"
short_desc="Project Management"
maintainer="John <johnz@posteo.net>"
license="GPL-2.0-or-later, LGPL-2.0-or-later, GFDL-1.2-or-later"
homepage="https://www.calligra.org/plan/"
distfiles="${KDE_SITE}/calligra/${version}/calligraplan-${version}.tar.xz"
checksum=59f985bae0482789c13c9440af3bf5da0a1d04756c1c1ccf39f68f66cd3e7ddd

if [ "$CROSS_BUILD" ];then
	hostmakedepends+=" qt5-qmake qt5-host-tools python3 perl
	calligra-plan-devtools kcoreaddons kconfig kparts"
	configure_args+=" -DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson"
fi

calligra-plan-devtools_package() {
	short_desc+=" - devtools required for cross compilation"
	pkg_install() {
		vbin build/devtools/rng2cpp/plan_rng2cpp
	}
}
