void-packages/srcpkgs/poppler-qt5/template

44 lines
1.4 KiB
Bash

# Template file for 'poppler-qt5'
#
# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/poppler"
# IT IS SPLIT TO AVOID A CYCLIC DEPENDENCY: qt5 -> cups -> poppler -> qt5.
#
pkgname=poppler-qt5
version=20.09.0
revision=2
wrksrc="poppler-${version}"
build_style=cmake
configure_args="-DENABLE_UNSTABLE_API_ABI_HEADERS=ON -DENABLE_GLIB=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="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later"
homepage="https://poppler.freedesktop.org"
distfiles="${homepage}/poppler-${version}.tar.xz"
checksum=4ed6eb5ddc4c37f2435c9d78ff9c7c4036455aea3507d1ce8400070aab745363
if [ "$CROSS_BUILD" ]; then
configure_args+=" -DTHREADS_PTHREAD_ARG=2"
fi
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
}
}