updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / poppler-qt-lcd / PKGBUILD
blob15b0f0fc965e0799c2d907939b0246a6085e39dc
1 # $Id: PKGBUILD 36062 2009-04-19 20:15:39Z jgc $
2 # Maintainer: Paul Gideon Dann <pdgiddie_at_gmail.com>
4 pkgname=poppler-qt-lcd
5 pkgver=0.18.2
6 pkgrel=1
7 provides=('poppler-qt=$pkgver')
8 conflicts=('poppler-qt')
9 pkgdesc="Poppler Qt bindings, with patches to allow subpixel rendering via Cairo"
10 arch=(i686 x86_64)
11 license=('GPL')
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')
26 build() {
27   cd "${srcdir}/poppler-${pkgver}"
29   for patch in ${srcdir}/*.patch; do
30     patch -Np1 -i $patch
31   done;
33   mkdir -p build
34   cd build
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 ..
38   make poppler-qt4
39   make DESTDIR="${pkgdir}" install
40   msg "Removing unwanted pkg-config files"
41   rm -f "${pkgdir}"/usr/lib/pkgconfig/poppler{,-splash,-cairo}.pc