From 77a435078e5d8a384d680b700095d26b2a8e20a7 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Tue, 20 Aug 2024 18:28:30 +0000 Subject: [PATCH] chore(x11/poppler-qt): Use cmake to install files This helps to avoid heuristic exclusion of common files based on name. That logic was added in e1e2634adcf2e091b7f5706ade091dea54ddd263 commit. %ci:no-build --- x11-packages/poppler-qt/build.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/x11-packages/poppler-qt/build.sh b/x11-packages/poppler-qt/build.sh index a84cc281b37e12..774bd3008fb4be 100644 --- a/x11-packages/poppler-qt/build.sh +++ b/x11-packages/poppler-qt/build.sh @@ -45,12 +45,7 @@ termux_step_pre_configure() { CPPFLAGS+=" -DCMS_NO_REGISTER_KEYWORD" } -termux_step_post_massage() { - find . ! -type d \ - ! -wholename "./include/poppler/qt5/*" \ - ! -wholename "./lib/libpoppler-qt5.so" \ - ! -wholename "./lib/pkgconfig/poppler-qt5.pc" \ - ! -wholename "./share/doc/$TERMUX_PKG_NAME/*" \ - -exec rm -f '{}' \; - find . -type d -empty -delete +termux_step_make_install() { + cmake --build "${TERMUX_PKG_BUILDDIR}" --target qt5/install + install -Dm600 -t "${TERMUX_PREFIX}"/lib/pkgconfig "${TERMUX_PKG_BUILDDIR}"/poppler-qt5.pc }