opt/poppler-qt5/Pkgfile

38 lines
941 B
Plaintext
Raw Normal View History

2017-01-01 13:41:55 +01:00
# Description: qt5 wrapper for poppler
# URL: http://poppler.freedesktop.org/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: qt5 poppler
name=poppler-qt5
2017-10-04 15:12:31 +02:00
version=0.60.0
2017-01-01 13:41:55 +01:00
release=1
2017-10-04 15:12:31 +02:00
source=(http://poppler.freedesktop.org/poppler-$version.tar.xz)
2017-01-01 13:41:55 +01:00
build() {
cd poppler-$version
2017-10-04 15:12:31 +02:00
# fix version string
sed -i '/POPPLER_MINOR_VERSION/s/59/60/' CMakeLists.txt
2017-01-01 13:41:55 +01:00
cmake . \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_XPDF_HEADERS=OFF \
-DENABLE_UTILS=OFF \
-DENABLE_SPLASH=ON \
-DENABLE_CPP=OFF \
-DENABLE_GLIB=OFF \
-DENABLE_QT4=OFF \
-DENABLE_QT5=ON \
-DENABLE_ZLIB=ON \
-DENABLE_CMS=lcms2 \
2017-05-22 14:48:29 +02:00
-DENABLE_LIBOPENJPEG=none \
2017-09-11 12:54:34 +02:00
-DENABLE_NSS3=OFF
2017-01-01 13:41:55 +01:00
make
make DESTDIR=$PKG install
rm $PKG/usr/lib/libpoppler.so*
rm $PKG/usr/lib/pkgconfig/poppler.pc
2017-10-04 15:12:31 +02:00
rm $PKG/usr/lib/pkgconfig/poppler-{splash,cairo}.pc
2017-01-01 13:41:55 +01:00
}