93 lines
2.5 KiB
Bash
93 lines
2.5 KiB
Bash
# Template file for 'poppler'
|
|
#
|
|
# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/poppler-qt5".
|
|
#
|
|
pkgname=poppler
|
|
version=21.05.0
|
|
revision=1
|
|
build_style=cmake
|
|
build_helper="gir"
|
|
configure_args="-DENABLE_UNSTABLE_API_ABI_HEADERS=ON -DENABLE_CPP=ON
|
|
-DENABLE_GLIB=ON -DENABLE_GOBJECT_INTROSPECTION=$(vopt_if gir ON OFF)
|
|
-DENABLE_QT5=OFF -DENABLE_UTILS=ON"
|
|
hostmakedepends="pkg-config glib-devel"
|
|
makedepends="libpng-devel libglib-devel cairo-devel tiff-devel lcms2-devel
|
|
libcurl-devel libopenjpeg2-devel"
|
|
short_desc="PDF rendering library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later, GPL-3.0-or-later"
|
|
homepage="https://poppler.freedesktop.org"
|
|
distfiles="${homepage}/${pkgname}-${version}.tar.xz"
|
|
checksum=dafd537b680fad1215bc40fc53d1f38e8449d7c185bc60d5a89e1d26c90dbd8c
|
|
patch_args=-Np1
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
libpoppler110_package() {
|
|
depends="poppler-data"
|
|
short_desc+=" - poppler runtime library"
|
|
pkg_install() {
|
|
vmove usr/lib/libpoppler.so.${pkgname/libpoppler/}*
|
|
}
|
|
}
|
|
|
|
poppler-cpp-devel_package() {
|
|
depends="zlib-devel poppler-devel>=${version}_${revision} poppler-cpp>=${version}_${revision}"
|
|
short_desc+=" - C++ bindings (development files)"
|
|
pkg_install() {
|
|
vmove usr/include/poppler/cpp
|
|
vmove usr/lib/libpoppler-cpp.so
|
|
vmove usr/lib/pkgconfig/poppler-cpp.pc
|
|
}
|
|
}
|
|
|
|
poppler-cpp_package() {
|
|
short_desc+=" - C++ bindings"
|
|
pkg_install() {
|
|
vmove "usr/lib/libpoppler-cpp.so.*"
|
|
}
|
|
}
|
|
|
|
poppler-devel_package() {
|
|
depends="libglib-devel libpoppler110>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove "usr/include/poppler/*.h"
|
|
vmove usr/include/poppler/splash
|
|
vmove usr/include/poppler/fofi
|
|
vmove usr/include/poppler/goo
|
|
vmove usr/lib/libpoppler.so
|
|
vmove usr/lib/pkgconfig/poppler.pc
|
|
}
|
|
}
|
|
|
|
poppler-glib-devel_package() {
|
|
depends="poppler-devel>=${version}_${revision} poppler-glib>=${version}_${revision}"
|
|
short_desc+=" - GLib bindings (development files)"
|
|
pkg_install() {
|
|
vmove usr/include/poppler/glib
|
|
vmove usr/lib/libpoppler-glib.so
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
vmove usr/lib/pkgconfig/poppler-glib.pc
|
|
}
|
|
}
|
|
|
|
poppler-glib_package() {
|
|
short_desc+=" - GLib bindings"
|
|
pkg_install() {
|
|
vmove "usr/lib/libpoppler-glib.so.*"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/lib/girepository-1.0
|
|
fi
|
|
}
|
|
}
|
|
|
|
poppler-utils_package() {
|
|
short_desc+=" - utilities (transitional package)"
|
|
build_style=meta
|
|
depends="poppler>=${version}_${revision}"
|
|
}
|