void-packages/srcpkgs/poppler-qt5/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

42 lines
1.4 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.32.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
--disable-poppler-qt4 --enable-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 qt5-devel"
short_desc="PDF rendering library - Qt5 bindings"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://poppler.freedesktop.org"
distfiles="${homepage}/poppler-$version.tar.xz"
checksum=4963e31ba5e17530a87b16588e22928bc044e8d28d02303dded981bff6725b98
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
}
}