diff options
Diffstat (limited to 'main/poppler/APKBUILD')
-rw-r--r-- | main/poppler/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/main/poppler/APKBUILD b/main/poppler/APKBUILD new file mode 100644 index 0000000000..5c1823781e --- /dev/null +++ b/main/poppler/APKBUILD @@ -0,0 +1,49 @@ +# 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.16.5 +pkgrel=0 +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 pkgconfig libiconv-dev" +depends= +depends_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-glib \ + --disable-gdk \ + --disable-poppler-qt4 \ + --disable-poppler-qt \ + || return 1 + make +} + +package() { + cd "$srcdir"/$pkgname-$pkgver + 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="2b6e0c26b77a943df3b9bb02d67ca236 poppler-0.16.5.tar.gz" |