kactivitymanagerd: fix cross

This commit is contained in:
John 2018-08-27 15:47:56 +02:00 committed by Helmut Pozimski
parent 9aefa87ae3
commit c309a8df81

View file

@ -4,7 +4,7 @@ version=5.13.4
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="extra-cmake-modules"
hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools"
makedepends="kio-devel boost-devel qt5-plugin-mysql qt5-plugin-odbc
qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds"
short_desc="Manage user's activities and track the usage patterns"
@ -13,4 +13,8 @@ license="GPL-2.0-or-later"
homepage="https://projects.kde.org/projects/plasma/kactivitymanagerd"
distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
checksum=2dbdb4deff0075da74c303fb423ee0fd98781a40b5a388f35ecdb6af6d5f0547
nocross="CMake Error: TRY_RUN() invoked in cross-compiling mode"
if [ "$CROSS_BUILD" ]; then
configure_args+=" -DRUN_RESULT_VAR=0"
configure_args+=" -DRUN_RESULT_VAR__TRYRUN_OUTPUT=0"
fi