blob: a0752f9d00cb95dd4ff486828d05bff6c21c0dde (
plain)
1 # Description: qt5 wrapper for poppler
2 # URL: https://poppler.freedesktop.org/
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: poppler qt6-base
5
6 name=poppler-qt6
7 version=23.01.0
8 release=1
9 source=(https://poppler.freedesktop.org/poppler-$version.tar.xz)
10
11 build() {
12 cmake -S poppler-$version -B build -G Ninja \
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=OFF \
22 -D ENABLE_QT5=OFF \
23 -D ENABLE_QT6=ON \
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 }
|