Add dependencies and update source.sh script
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user