calligra: fix cross

This commit is contained in:
Helmut Pozimski 2018-08-25 23:00:23 +02:00
parent e08c8ace36
commit c834bc75a2
1 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'calligra'
pkgname=calligra
version=3.1.0
revision=9
revision=10
build_style=cmake
configure_args="-Wno-dev -DCALLIGRA_SHOULD_BUILD_UNMAINTAINED=ON"
hostmakedepends="automoc4 perl pkg-config extra-cmake-modules"
@ -18,7 +18,6 @@ license="GPL-2.0-or-later LGPL-2.0-or-later GFDL-1.2-or-later"
homepage="http://www.calligra-suite.org/"
distfiles="${KDE_SITE}/calligra/${version}/calligra-${version}.tar.xz"
checksum=6818cd6e64136321be217eb57cc7d6ac7c7035191fdb1ee336ebe60bc114e870
nocross="https://build.voidlinux.eu/builders/armv6l-musl_builder/builds/11481/steps/shell_3/logs/stdio"
replaces="calligra-braindump>=0 calligra-flow>=0"
@ -29,6 +28,11 @@ depends="${subpackages/calligra-devtools/} calligra-plan"
CXXFLAGS="-DKDE_NO_DEBUG_OUTPUT"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-qmake qt5-host-tools calligra-devtools kcoreaddons"
configure_args+=" -DMODERN_ICONV_RUN=1 -DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson"
fi
# cmake doesn't detect the functions correctly
pre_build() {
case $XBPS_TARGET_MACHINE in
@ -135,6 +139,8 @@ calligra-devtools_package() {
pkg_install() {
cd ${wrksrc}/build/devtools
make DESTDIR=$PKGDESTDIR install
vbin rng2cpp/rng2cpp
vbin ../filters/sheets/excel/sidewinder/recordsxml2cpp
}
}
calligra-gemini_package() {