1 # $Id: PKGBUILD 36062 2009-04-19 20:15:39Z jgc $
2 # Maintainer: Paul Gideon Dann <pdgiddie_at_gmail.com>
7 provides=('poppler-qt=$pkgver')
8 conflicts=('poppler-qt')
9 pkgdesc="Poppler Qt bindings, with patches to allow subpixel rendering via Cairo"
12 depends=('qt>=4.7.0' 'cairo>=1.10.0' "poppler>=${pkgver}")
13 makedepends=('cmake' 'pkgconfig')
14 url="http://poppler.freedesktop.org/"
15 source=(http://poppler.freedesktop.org/poppler-${pkgver}.tar.gz
16 0001-Cairo-backend-added-to-Qt4-wrapper.patch
17 0002-Setting-default-Qt4-backend-to-Cairo.patch
18 0003-Forcing-subpixel-rendering-in-Cairo-backend.patch
19 0004-Don-t-build-the-main-poppler-library.patch)
20 md5sums=('d70d2d63d8acd29c97185f7e5f09c9b4'
21 'db48d2e289a1c38904698c2810998d50'
22 'a2c6403987cc813f490eefc5d6d4616c'
23 '6ea76d66d53c71e83e75d4fa34933cbf'
24 'a6c21fffaa22c111175c869e62c8ad0b')
27 cd "${srcdir}/poppler-${pkgver}"
29 for patch in ${srcdir}/*.patch; do
35 cmake -DCMAKE_INSTALL_PREFIX=/usr \
36 -DBUILD_QT4_TESTS=OFF -DENABLE_UTILS=OFF -DENABLE_CPP=OFF \
37 -DWITH_Cairo=ON -DWITH_GLIB=OFF -DWITH_Qt4=ON ..
39 make DESTDIR="${pkgdir}" install
40 msg "Removing unwanted pkg-config files"
41 rm -f "${pkgdir}"/usr/lib/pkgconfig/poppler{,-splash,-cairo}.pc