blob: 956bb67017e88c23b0b244f693d7fa44c8517b2c (
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
|
# $Id: PKGBUILD 36062 2009-04-19 20:15:39Z jgc $
# Maintainer: Paul Gideon Dann <pdgiddie_at_gmail.com>
pkgname=poppler-qt-lcd
pkgver=24.11.0
pkgrel=1
pkgdesc="Poppler Qt bindings, with patches to allow subpixel rendering via Cairo"
license=('GPL')
arch=(i686 x86_64)
provides=("poppler-qt5=${pkgver}" "libpoppler-qt5.so")
conflicts=('poppler-qt5')
depends=('qt5-base' 'cairo' "poppler>=${pkgver}")
makedepends=('cmake' 'pkgconfig' 'boost')
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)
md5sums=('a2456413b4219d010a4fa87a747d729e'
'f6077addb2361d87e2d47b7d7ddb8642'
'a0e18cb13e81eec6b607e7bd65bb008e')
build() {
cd "${srcdir}/poppler-${pkgver}"
for patch in ${srcdir}/*.patch; do
patch -Np1 -i $patch
done;
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_CPP=OFF \
-DENABLE_UTILS=OFF \
-DWITH_GLIB=OFF \
-DENABLE_QT6=OFF \
..
make poppler-qt5
}
package() {
cd "${srcdir}/poppler-${pkgver}/build"
make DESTDIR="${pkgdir}" -C qt5/src install
msg "Removing unwanted pkg-config files"
rm -f "${pkgdir}"/usr/lib/pkgconfig/poppler{,-splash,-cairo}.pc
}
|