blob: 25ad9b8207b997335f482c9aaab9e020257be952 (
plain) (
tree)
|
|
# Maintainer:
pkgname=poppler
pkgver=22.06.0
pkgrel=0
pkgdesc="PDF rendering library based on xpdf 3.0"
url="https://poppler.freedesktop.org/"
arch="all"
options="!check" # Tests only cover Qt5 component.
license="GPL-2.0+"
depends=""
depends_dev="cairo-dev glib-dev"
makedepends="$depends_dev libjpeg-turbo-dev cairo-dev libxml2-dev openjpeg-dev
fontconfig-dev gobject-introspection-dev lcms2-dev libpng-dev tiff-dev
zlib-dev boost-dev cmake"
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils $pkgname-glib"
source="https://poppler.freedesktop.org/poppler-$pkgver.tar.xz"
# secfixes:
# 0.77.0-r0:
# - CVE-2019-9200
# - CVE-2019-9631
# - CVE-2019-9903
# - CVE-2019-10872
# - CVE-2019-10873
# - CVE-2019-11026
# - CVE-2019-12293
# 0.80.0-r0:
# - CVE-2019-9959
# - CVE-2019-14494
build() {
cmake -Bbuild \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
.
make -C build
}
package() {
make -C build DESTDIR="$pkgdir" install
}
utils() {
pkgdesc="Poppler's xpdf-workalike command line utilities"
install -d "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
glib() {
pkgdesc="Glib wrapper for poppler"
replaces="poppler-gtk"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libpoppler-glib.so.* \
"$pkgdir"/usr/lib/girepository* \
"$subpkgdir"/usr/lib/
}
sha512sums="79e1a1440a0903ea6238dcc7afc4ecdf1f8cc53af94ec5649f631fca568711d48a7ec4046fccb8520818420dc21e4ad1aaf602c22b13f9ce22f4d06edc83c8a3 poppler-22.06.0.tar.xz"
|