updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / poppler-qt-lcd / PKGBUILD
blob78476d6f892214e644b45f0d82e677770cde3252
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.3
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=('d70d2d63d8acd29c97185f7e5f09c9b4'
21          'db48d2e289a1c38904698c2810998d50'
22          'a2c6403987cc813f490eefc5d6d4616c'
23          '6ea76d66d53c71e83e75d4fa34933cbf'
24          'a6c21fffaa22c111175c869e62c8ad0b')
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