blob: 25bb049b12f1b3479894277301bf5e005b260ca4 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# this aport does not include glib/gtk support in order to break the
# circular make dependency: gtk <- cups <- poppler <- gtk
# So we build gtk support in poppler-gtk
pkgname=poppler
pkgver=0.20.3
pkgrel=3
pkgdesc="PDF rendering library based on xpdf 3.0"
url="http://poppler.freedesktop.org/"
arch="all"
license="GPL"
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
makedepends="jpeg-dev cairo-dev libxml2-dev fontconfig-dev libiconv-dev
lcms-dev"
depends=
depends_dev="cairo-dev"
source="http://$pkgname.freedesktop.org/$pkgname-$pkgver.tar.gz
CVE-2013-1788.patch
CVE-2013-1790.patch
CVE-2013-4473.patch
CVE-2013-4474.patch
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--enable-cairo-output \
--enable-xpdf-headers \
--enable-libjpeg \
--enable-zlib \
--disable-poppler-glib \
--disable-poppler-qt4 \
|| return 1
make
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" -name '*.la' -delete
}
utils() {
pkgdesc="Poppler's xpdf-workalike command line utilities"
install -d "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
md5sums="28c40266f374e1960a7bcead17d39f96 poppler-0.20.3.tar.gz
03e70638513b489aaef047a031c76b11 CVE-2013-1788.patch
c375e6e85e67f2a269f20a95bd9cf4a1 CVE-2013-1790.patch
6cbd84d8a52316ca7cf0383e2c437f9e CVE-2013-4473.patch
112d102b32b6b985f15c88423ecc66eb CVE-2013-4474.patch"
|