blob: 7b3aae3406cbce2bd05dcb0d6b84e5b084ff853e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $Id: PKGBUILD 36062 2009-04-19 20:15:39Z jgc $
# Maintainer: Paul Gideon Dann <pdgiddie_at_gmail.com>
pkgname=poppler-qt-lcd
pkgver=0.76.1
pkgrel=1
pkgdesc="Poppler Qt bindings, with patches to allow subpixel rendering via Cairo"
license=('GPL')
arch=(i686 x86_64)
provides=("poppler-qt=${pkgver}" "poppler-qt5=${pkgver}")
conflicts=('poppler-qt' 'poppler-qt4' 'poppler-qt5')
depends=('qt5-base' 'cairo' "poppler>=${pkgver}")
makedepends=('cmake' 'pkgconfig')
url="https://github.com/giddie/poppler-cairo-backend"
source=(http://poppler.freedesktop.org/poppler-${pkgver}.tar.xz
0001-Cairo-backend-added-to-Qt5-wrapper.patch
0002-Setting-default-Qt5-backend-to-Cairo.patch
0003-Apply-subpixel-rendering-in-Cairo-Backend.patch
0004-Don-t-build-the-main-poppler-library.patch)
md5sums=('99f1e6ab4c96d14840e862eb027f0fc0'
'edfc1cf0efa68fe5533f05abfbb962a4'
'5ff3715c66c5270532c0fc3996ee42cf'
'8d3cd2fc643130de57ad48cd40865c6d'
'4c62cd1fbf1c82657e79a02f3195b2c3')
build() {
cd "${srcdir}/poppler-${pkgver}"
for patch in ${srcdir}/*.patch; do
patch -Np1 -i $patch
done;
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_CPP=OFF -DENABLE_UTILS=OFF \
-DWITH_GLIB=OFF \
..
make poppler-qt5
}
package() {
cd "${srcdir}/poppler-${pkgver}/build"
make DESTDIR="${pkgdir}" -C qt5/src install
msg "Removing unwanted pkg-config files"
mv "${pkgdir}"/usr/lib{64,}
rm -f "${pkgdir}"/usr/lib/pkgconfig/poppler{,-splash,-cairo}.pc
}
|