Skip to content

Commit

Permalink
chore(x11/poppler-qt): Use cmake to install files
Browse files Browse the repository at this point in the history
This helps to avoid heuristic exclusion of common files based on name.
That logic was added in e1e2634 commit.

%ci:no-build
  • Loading branch information
Biswa96 committed Aug 21, 2024
1 parent 48b42ea commit 77a4350
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions x11-packages/poppler-qt/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 77a4350

Please sign in to comment.