# Maintainer: Natanael Copa # this aport does not include glib/gtk support in order to break the # circular make dependency: gtk <- cups <- poppler <- gtk # So we build gtk support in poppler-gtk pkgname=poppler pkgver=0.18.4 pkgrel=2 pkgdesc="PDF rendering library based on xpdf 3.0" url="http://poppler.freedesktop.org/" arch="all" license="GPL" subpackages="$pkgname-dev $pkgname-doc $pkgname-utils" makedepends="jpeg-dev cairo-dev libxml2-dev fontconfig-dev pkgconfig libiconv-dev" depends= depends_dev="cairo-dev" source="http://$pkgname.freedesktop.org/$pkgname-$pkgver.tar.gz CVE-2013-1788.patch CVE-2013-1790.patch CVE-2013-4473.patch CVE-2013-4474.patch " _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ --enable-cairo-output \ --enable-xpdf-headers \ --enable-libjpeg \ --enable-zlib \ --disable-poppler-glib \ --disable-poppler-qt4 \ || return 1 make } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" -name '*.la' -delete } utils() { pkgdesc="Poppler's xpdf-workalike command line utilities" install -d "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } md5sums="12658f3308597e57f3faff538cc73baf poppler-0.18.4.tar.gz 3f16bcc4fc0364fbb790260c07269685 CVE-2013-1788.patch 9d402082df4eae246008cd29dda9412e CVE-2013-1790.patch 6cbd84d8a52316ca7cf0383e2c437f9e CVE-2013-4473.patch 5457df40204ae0906c5de190457d5d08 CVE-2013-4474.patch"