# Template file for 'kexi'
pkgname=kexi
version=3.1.0
revision=3
build_style=cmake
replaces="calligra-kexi>=0"
hostmakedepends="extra-cmake-modules kdoctools doxygen pkg-config"
makedepends="ktexteditor-devel kdb-devel kreport-devel qt5-webkit-devel
 breeze-icons postgresql-libs-devel libmysqlclient-devel marble5-devel"
depends="breeze-icons"
short_desc="Visual database applications creator"
maintainer="John <johnz@posteo.net>"
license="GPL-2-or-later, LGPL-2.0-or-later"
homepage="http://www.kexi-project.org/"
distfiles="${KDE_SITE}/kexi/src/kexi-${version}.tar.xz"
checksum=6d55cd4af177bcb060673a0977d52bc91cc2dd1b1420d008a78f9783312152fb

if [ "$CROSS_BUILD" ];then
	hostmakedepends+=" qt5-qmake qt5-host-tools python3 kcoreaddons"
	configure_args+=" -DRUN_RESULT=0"
	configure_args+=" -DRUN_RESULT__TRYRUN_OUTPUT=0"
	configure_args+=" -DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson"
fi
