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=('38616927823ef01937aab26872e957e4'
21 '4124edd15fd5f6328f8afaaaf812b4ef'
22 '5786f220cb72d822cf0aee9b396cb3cb'
23 '8d26aa8dbd819049e79bfbf44e69d448'
24 'b0f694436a6c5dde3a7dca5d18848f71')
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