Add dependencies and update source.sh script
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
name: poppler
|
name: poppler
|
||||||
description: PDF rendering library based on the xpdf-3.0 code base
|
description: PDF rendering library based on the xpdf-3.0 code base
|
||||||
version: 25.03.0
|
version: 25.03.0
|
||||||
|
revision: 2
|
||||||
url: https://poppler.freedesktop.org/
|
url: https://poppler.freedesktop.org/
|
||||||
license: GPL2-only,GPL3-or-later,HPND-sell-variant,LGPL2-or-later,LGPL2.1-or-later,MIT
|
license: GPL2-only,GPL3-or-later,HPND-sell-variant,LGPL2-or-later,LGPL2.1-or-later,MIT
|
||||||
architecture: any
|
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
|
type: source
|
||||||
|
|||||||
@@ -15,28 +15,24 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
mkdir build
|
cmake -B build \
|
||||||
cd build
|
-D CMAKE_BUILD_TYPE=Release \
|
||||||
|
|
||||||
cmake -D CMAKE_BUILD_TYPE=Release \
|
|
||||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||||
-D TESTDATADIR=$PWD/testfiles \
|
-D TESTDATADIR=$PWD/testfiles \
|
||||||
-D ENABLE_QT5=OFF \
|
-D ENABLE_QT5=OFF \
|
||||||
-D ENABLE_BOOST=OFF \
|
-D ENABLE_UNSTABLE_API_ABI_HEADERS=ON
|
||||||
-D ENABLE_UNSTABLE_API_ABI_HEADERS=ON ..
|
cmake --build build
|
||||||
make
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
cd build
|
DESTDIR="$BPM_OUTPUT" cmake --install build
|
||||||
|
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
|
||||||
|
|
||||||
# Install documentation
|
# Install documentation
|
||||||
install -dm755 "$BPM_OUTPUT"/usr/share/doc/poppler
|
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/
|
install -Dm644 "$BPM_SOURCE"/{COPYING,COPYING3,README-XPDF,README.contributors} -t "$BPM_OUTPUT"/usr/share/licenses/poppler/
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user