diff --git a/srcpkgs/telepathy-qt5/template b/srcpkgs/telepathy-qt5/template index c832e430955..43d5da3c24f 100644 --- a/srcpkgs/telepathy-qt5/template +++ b/srcpkgs/telepathy-qt5/template @@ -20,8 +20,6 @@ checksum=21bad30be7ebc4ba667d53d92cd1cec1be23114103f2149404d9740721693d4f if [ -n "$CROSS_BUILD" ]; then hostmakedepends+=" qt5-host-tools qt5-devel" - # cmake/FindPythonLibrary.cmake fails when cross compiling - sed -i CMakeLists.txt -e "/find_package(PythonLibrary ${REQUIRED_PY} REQUIRED)/d" configure_args+=" -DPYTHON_SHORT_VERSION=2.7" configure_args+=" -DPYTHON_LONG_VERSION=2.7.3" configure_args+=" -DPYTHON_SITE_PACKAGES_DIR=${XBPS_CROSS_BASE}/usr/lib/python2.7/site-packages" @@ -33,6 +31,13 @@ CXXFLAGS="-D_DEFAULT_SOURCE" subpackages="telepathy-qt5-farstream telepathy-qt5-devel" +post_extract() { + if [ -n "$CROSS_BUILD" ]; then + # cmake/FindPythonLibrary.cmake fails when cross compiling + sed -i CMakeLists.txt -e "/find_package(PythonLibrary ${REQUIRED_PY} REQUIRED)/d" + fi +} + telepathy-qt5-farstream_package() { short_desc+=" - farstream component" depends="telepathy-qt5>=${version}_${revision}"