void-packages/srcpkgs/poppler-qt4/template
2016-12-16 08:16:19 +00:00

42 lines
1.4 KiB
Bash

# Template file for 'poppler-qt4'
#
# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/poppler"; IT IS SPLITTED TO AVOID
# A CYCLIC DEPENDENCY: qt -> cups -> poppler -> qt.
#
pkgname=poppler-qt4
version=0.50.0
revision=1
wrksrc="poppler-${version}"
build_style=gnu-configure
configure_args="--enable-zlib --enable-libcurl --enable-libjpeg
--enable-libtiff --disable-libopenjpeg --enable-cairo-output
--enable-xpdf-headers --disable-gtk-test --disable-poppler-glib
--enable-poppler-qt4 --disable-poppler-qt5 --disable-poppler-cpp
--disable-utils --disable-static --disable-introspection"
hostmakedepends="pkg-config"
makedepends="libpng-devel tiff-devel lcms2-devel libcurl-devel
fontconfig-devel cairo-devel qt-devel"
short_desc="PDF rendering library - Qt4 bindings"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://poppler.freedesktop.org"
distfiles="${homepage}/poppler-$version.tar.xz"
checksum=c9c93318b789d3933f6e0bad3bc65110280c28eac3f0666284bb9c9a0ab4bc36
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-qt4-devel_package() {
depends="poppler-devel>=${version} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include/poppler/qt4
vmove usr/lib/libpoppler-qt4.so
vmove usr/lib/pkgconfig/poppler-qt4.pc
rm -rf ${DESTDIR}/usr/include
}
}