From f6a324ca9b8bc7ad6a6270b609159a83115cadbf Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 13 Sep 2025 11:56:20 +0300 Subject: [PATCH] Add dependencies and update source.sh script --- pkg.info | 3 +++ source.sh | 18 +++++++----------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/pkg.info b/pkg.info index 896e332..186c7b1 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,10 @@ name: poppler description: PDF rendering library based on the xpdf-3.0 code base version: 25.03.0 +revision: 2 url: https://poppler.freedesktop.org/ license: GPL2-only,GPL3-or-later,HPND-sell-variant,LGPL2-or-later,LGPL2.1-or-later,MIT architecture: any +depends: ["cairo","curl","fontconfig","freetype2","gcc-libs","glib","glibc","icu","lcms2","libjpeg-turbo","libpng","libtiff","nspr","nss","openjpeg","zlib"] +make_depends: ["boost","cmake","gobject-introspection","poppler-data","python3","qt6-base"] type: source diff --git a/source.sh b/source.sh index eeaa8cc..1b64a91 100644 --- a/source.sh +++ b/source.sh @@ -15,28 +15,24 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { - mkdir build - cd build - - cmake -D CMAKE_BUILD_TYPE=Release \ + cmake -B build \ + -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_INSTALL_PREFIX=/usr \ -D TESTDATADIR=$PWD/testfiles \ -D ENABLE_QT5=OFF \ - -D ENABLE_BOOST=OFF \ - -D ENABLE_UNSTABLE_API_ABI_HEADERS=ON .. - make + -D ENABLE_UNSTABLE_API_ABI_HEADERS=ON + cmake --build build } # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() { - cd build - - make DESTDIR="$BPM_OUTPUT" install + DESTDIR="$BPM_OUTPUT" cmake --install build # Install documentation install -dm755 "$BPM_OUTPUT"/usr/share/doc/poppler - cp -r ../glib/reference/html "$BPM_OUTPUT"/usr/share/doc/poppler + cp -r "$BPM_SOURCE"/glib/reference/html "$BPM_OUTPUT"/usr/share/doc/poppler + # Install package license install -Dm644 "$BPM_SOURCE"/{COPYING,COPYING3,README-XPDF,README.contributors} -t "$BPM_OUTPUT"/usr/share/licenses/poppler/ }