# Maintainer: Natanael Copa # this aport only includes glib/gtk support in order to break the # circular make dependency: gtk <- cups <- poppler <- gtk pkgname=poppler-qt5 _pkgname=poppler pkgver=0.82.0 pkgrel=0 pkgdesc="PDF rendering library based on xpdf 3.0" url="https://poppler.freedesktop.org/" arch="all" license="GPL-2.0-only" replaces="poppler-glib" provides="poppler-qt4-$pkgver-$pkgrel" options="!check" # Requires dl of testfiles and only checks qt5 libs makedepends="cairo-dev cmake fontconfig-dev jpeg-dev lcms2-dev libjpeg-turbo-dev libpng-dev libxml2-dev openjpeg-dev openjpeg-tools poppler-dev>=$pkgver qt5-qtbase-dev tiff-dev zlib-dev " depends_dev="$makedepends" subpackages="$pkgname-dev" source="https://poppler.freedesktop.org/poppler-$pkgver.tar.xz" builddir="$srcdir/$_pkgname-$pkgver/build" prepare() { local _linked_pkg=poppler local _linked_apkbuild="$startdir"/../../main/$_linked_pkg/APKBUILD mkdir -p "$builddir" if [ -f "$_linked_apkbuild" ]; then local _linked_ver=$( . "$_linked_apkbuild"; echo "$pkgver") if [ "$_linked_ver" != "$pkgver" ]; then error "pkgver needs to be identical with $_linked_pkg ($_linked_ver)" return 1 fi fi } build() { cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DENABLE_UNSTABLE_API_ABI_HEADERS=ON \ -DBUILD_GTK_TESTS=OFF \ -DBUILD_QT5_TESTS=ON \ -DBUILD_CPP_TESTS=OFF \ -DENABLE_QT5=ON make } package() { install -D -m644 poppler-qt5.pc "$pkgdir"/usr/lib/pkgconfig/poppler-qt5.pc cd qt5 make DESTDIR="$pkgdir" install } sha512sums="1631be30e398dd18a4e8c2cc893cf0d9469a98d93f02f2ffe3bc14857518b76674a10cafe89ee92b9886c3c6b03d50e214a6838c102f673a62789c9832cfa4a2 poppler-0.82.0.tar.xz"