From 2784ef558447ea1bda4721e4f95430350c8ff42a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 1 Sep 2020 15:05:39 +0200 Subject: [PATCH] deepin-screenshot: triger (fixed) cross build --- srcpkgs/deepin-screenshot/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/deepin-screenshot/template b/srcpkgs/deepin-screenshot/template index 37feb6bec43..be5d21fb2f5 100644 --- a/srcpkgs/deepin-screenshot/template +++ b/srcpkgs/deepin-screenshot/template @@ -1,7 +1,7 @@ # Template file for 'deepin-screenshot' pkgname=deepin-screenshot version=5.0.0 -revision=1 +revision=2 build_style=cmake hostmakedepends="pkg-config qt5-qmake" makedepends="dtkwidget-devel dtkwm-devel libXtst-devel qt5-svg-devel @@ -18,6 +18,10 @@ CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libdtk-2.0.16/DWidget" CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/libdtk-2.0.16/DCore" CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/libdtk-2.0.16/DWm" +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" dtkwidget-devel dtkwm-devel" +fi + pre_configure() { sed -i '/^set(CMAKE_CXX_FLAGS.*/d' CMakeLists.txt }