kservice: fix cross

This commit is contained in:
Jürgen Buchmüller 2017-02-23 03:01:17 +01:00
parent d17047d19b
commit 194cf9a127
1 changed files with 10 additions and 1 deletions

View File

@ -5,7 +5,7 @@ revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="extra-cmake-modules flex bison"
makedepends="kconfig-devel kcrash-devel kdbusaddons-devel ki18n-devel kdoctools-devel"
makedepends="kconfig-devel kcrash-devel kdbusaddons-devel ki18n-devel"
short_desc="KDE Plugin framework for desktop services"
maintainer="Denis Revin <denis.revin@gmail.com>"
license="LGPL-2"
@ -13,6 +13,15 @@ homepage="https://projects.kde.org/projects/frameworks/kservice"
distfiles="http://download.kde.org/stable/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=8796ff345f09ac422abbc752b441ceee2f6113a591e68e7c10e4a2cad9838010
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-devel"
# The build scripts try to run the target's /usr/bin/meinproc5
# which is why kdoctools(-devel) is not used when cross compiling.
# TODO: find a way to enforce cmake to use the host's /usr/bin/meinproc5 instead
else
makedepends+=" kdoctools-devel"
fi
kservice-devel_package() {
short_desc+=" - development"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"