40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Template file for 'poppler-qt5'
|
|
#
|
|
# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/poppler"; IT IS SPLITTED TO AVOID
|
|
# A CYCLIC DEPENDENCY: qt5 -> cups -> poppler -> qt5.
|
|
#
|
|
pkgname=poppler-qt5
|
|
version=0.60.1
|
|
revision=1
|
|
wrksrc="poppler-${version}"
|
|
build_style=cmake
|
|
configure_args="-DENABLE_XPDF_HEADERS=on -DENABLE_GLIB=off
|
|
-DENABLE_QT4=off -DENABLE_QT5=on -DENABLE_UTILS=off -DENABLE_CPP=off"
|
|
hostmakedepends="pkg-config qt5-devel"
|
|
makedepends="libpng-devel tiff-devel lcms2-devel libcurl-devel
|
|
fontconfig-devel cairo-devel libopenjpeg2-devel qt5-devel"
|
|
short_desc="PDF rendering library - Qt5 bindings"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2"
|
|
homepage="http://poppler.freedesktop.org"
|
|
distfiles="${homepage}/poppler-$version.tar.xz"
|
|
checksum=19f185e05c3b59b4a1de2cec8ef39f5446035493d17bbed41d02fb9a77c8a93c
|
|
|
|
post_install() {
|
|
rm -f ${DESTDIR}/usr/lib/libpoppler.*
|
|
for f in poppler-cairo poppler-splash poppler; do
|
|
rm -f ${DESTDIR}/usr/lib/pkgconfig/${f}.pc
|
|
done
|
|
}
|
|
|
|
poppler-qt5-devel_package() {
|
|
depends="poppler-devel>=${version} ${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include/poppler/qt5
|
|
vmove usr/lib/libpoppler-qt5.so
|
|
vmove usr/lib/pkgconfig/poppler-qt5.pc
|
|
rm -rf ${DESTDIR}/usr/include
|
|
}
|
|
}
|