summaryrefslogtreecommitdiff
path: root/user/poppler/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-06 03:01:29 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-06 03:01:29 -0500
commitbffe051f466bfd6f39b73c407446d32d75099541 (patch)
treea94cbebd25b675456c707a3bb4724e2f0675d1c9 /user/poppler/APKBUILD
parent1ec7238973fd468715d553ade7319d9d0cc60ad7 (diff)
downloadpackages-bffe051f466bfd6f39b73c407446d32d75099541.tar.gz
packages-bffe051f466bfd6f39b73c407446d32d75099541.tar.bz2
packages-bffe051f466bfd6f39b73c407446d32d75099541.tar.xz
packages-bffe051f466bfd6f39b73c407446d32d75099541.zip
user/poppler: new package, heavily bumped and fixed
Diffstat (limited to 'user/poppler/APKBUILD')
-rw-r--r--user/poppler/APKBUILD60
1 files changed, 60 insertions, 0 deletions
diff --git a/user/poppler/APKBUILD b/user/poppler/APKBUILD
new file mode 100644
index 000000000..2981dff48
--- /dev/null
+++ b/user/poppler/APKBUILD
@@ -0,0 +1,60 @@
+# Maintainer:
+pkgname=poppler
+pkgver=0.66.0
+pkgrel=0
+pkgdesc="PDF rendering library based on xpdf 3.0"
+url="https://poppler.freedesktop.org/"
+arch="all"
+options="!check" # Test data is available in Git only.
+license="GPL-2.0+"
+depends=
+depends_dev="cairo-dev glib-dev"
+makedepends="$depends_dev libjpeg-turbo-dev cairo-dev libxml2-dev openjpeg-dev
+ fontconfig-dev gobject-introspection-dev lcms2-dev libpng-dev tiff-dev
+ zlib-dev cmake"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-utils $pkgname-glib"
+source="https://poppler.freedesktop.org/poppler-$pkgver.tar.xz"
+builddir="$srcdir"/$pkgname-$pkgver/build
+
+prepare() {
+ mkdir "$builddir"
+}
+
+build() {
+ cd "$builddir"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ ..
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+utils() {
+ pkgdesc="Poppler's xpdf-workalike command line utilities"
+ install -d "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+glib() {
+ pkgdesc="Glib wrapper for poppler"
+ replaces="poppler-gtk"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libpoppler-glib.so.* \
+ "$pkgdir"/usr/lib/girepository* \
+ "$subpkgdir"/usr/lib/
+}
+
+_cpp() {
+ pkgdesc="Pure C++ wrapper for poppler"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libpoppler-cpp.so.* \
+ "$subpkgdir"/usr/lib/
+}
+
+sha512sums="cf0ce3855d7cc28021685731308bfdeca0a7a764345432242887852d67fb4119b149ab7ba692e7031e2f0e79b9982e71446efbd75bb7886450d13ea6c5035b51 poppler-0.66.0.tar.xz"