opt/poppler/Pkgfile

29 lines
789 B
Plaintext

# Description: PDF rendering library based on xpdf 3.0
# URL: https://poppler.freedesktop.org/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: cmake cairo lcms2
name=poppler
version=20.08.0
release=1
source=(https://poppler.freedesktop.org/poppler-$version.tar.xz)
build() {
cmake -S $name-$version -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
-DENABLE_UTILS=ON \
-DENABLE_SPLASH=ON \
-DENABLE_CPP=ON \
-DENABLE_GLIB=OFF \
-DENABLE_QT5=OFF \
-DENABLE_ZLIB=ON \
-DENABLE_CMS=lcms2 \
-DENABLE_LIBOPENJPEG=none \
-DWITH_NSS3=OFF
cmake --build build
DESTDIR=$PKG cmake --install build
}