deepin-screenshot: triger (fixed) cross build

This commit is contained in:
Jürgen Buchmüller 2020-09-01 15:05:39 +02:00
parent 1dc0576076
commit 2784ef5584
1 changed files with 5 additions and 1 deletions

View File

@ -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
}