summaryrefslogtreecommitdiffstats
path: root/x11/poppler/APKBUILD
blob: 04ed2db8f3634a4b49531377eb83381ad426061d (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=poppler
pkgver=0.10.7
pkgrel=0
pkgdesc="PDF rendering library based on xpdf 3.0"
url="http://poppler.freedesktop.org/"
license="GPL"
subpackages="$pkgname-dev $pkgname-doc $pkgname-glib"
makedepends="jpeg-dev cairo-dev gtk+-dev libxml2-dev fontconfig-dev pkgconfig
	glib-dev"
depends=
depends_dev="glib-dev gtk+-dev cairo-dev"
source="http://$pkgname.freedesktop.org/$pkgname-$pkgver.tar.gz"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static \
		--enable-cairo-output \
		--enable-xpdf-headers \
		--enable-libjpeg \
		--enable-zlib \
		--disable-poppler-qt4 \
		--enable-poppler-glib \
		--disable-poppler-qt \
		|| return 1
	make || return 1
	make DESTDIR="$pkgdir" install || return 1
}

glib() {
	pkgdesc="Glib bindings for poppler"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libpoppler-glib* "$subpkgdir"/usr/lib/
}

md5sums="ba120e49a82567d85d00e159011ebe67  poppler-0.10.7.tar.gz"