Add dependencies and update source.sh script

This commit is contained in:
2025-09-13 11:56:20 +03:00
parent 52bb198f07
commit f6a324ca9b
2 changed files with 10 additions and 11 deletions
+7 -11
View File
@@ -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/
}