# Template file for 'kexi'
pkgname=kexi
version=3.2.0
revision=2
build_style=cmake
hostmakedepends="extra-cmake-modules gettext kdoctools doxygen pkg-config"
makedepends="ktexteditor-devel kdb-devel kreport-devel qt5-webkit-devel
 breeze-icons postgresql-libs-devel libmariadbclient-devel marble5-devel"
depends="breeze-icons"
short_desc="Visual database applications creator"
maintainer="John <me@johnnynator.dev>"
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=7a813f9ea815a09c1e733d0e7dc879c64eee85f075389e87e6aab99cf0c1c1ff
replaces="calligra-kexi>=0"

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
