blob: 6fb320b8644dcd290f2b18fe9102fb2bb0f7a1a0 (
plain)
1 # Description: glib wrapper for poppler
2 # URL: https://poppler.freedesktop.org/
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: gobject-introspection poppler
5
6 name=poppler-glib
7 version=22.04.0
8 release=1
9 source=(https://poppler.freedesktop.org/poppler-$version.tar.xz)
10
11 build() {
12 cmake -S poppler-$version -B build\
13 -D CMAKE_BUILD_TYPE=Release \
14 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
15 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
16 -D CMAKE_INSTALL_PREFIX=/usr \
17 -D CMAKE_INSTALL_LIBDIR=/usr/lib \
18 -D ENABLE_UNSTABLE_API_ABI_HEADERS=OFF \
19 -D ENABLE_UTILS=OFF \
20 -D ENABLE_CPP=OFF \
21 -D ENABLE_GLIB=ON \
22 -D ENABLE_QT5=OFF \
23 -D ENABLE_QT6=OFF \
24 -D ENABLE_ZLIB=ON \
25 -D ENABLE_CMS=lcms2 \
26 -D ENABLE_LIBOPENJPEG=none \
27 -D ENABLE_BOOST=OFF \
28 -D WITH_NSS3=OFF \
29 -D RUN_GPERF_IF_PRESENT=OFF
30
31 cmake --build build -j ${JOBS:-1}
32 DESTDIR=$PKG cmake --install build
33
34 rm $PKG/usr/lib/libpoppler.so*
35 rm $PKG/usr/lib/pkgconfig/poppler.pc
36 }
|