summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBehnam Momeni2020-01-31 18:06:09 +0330
committerBehnam Momeni2020-01-31 18:06:09 +0330
commit202365ac54e23ac61e0c349cab5f41f3ca6e403b (patch)
treeeb6256b0f99a38651408df41477ecff11766b360
downloadaur-202365ac54e23ac61e0c349cab5f41f3ca6e403b.tar.gz
Initial commit; version 0.85.0
-rw-r--r--.SRCINFO53
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD84
-rwxr-xr-xpkgconf322
4 files changed, 144 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dfcca7692a2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,53 @@
+# Generated by mksrcinfo v8
+# Fri Jan 31 14:34:41 UTC 2020
+pkgbase = lib32-poppler
+ pkgver = 0.85.0
+ pkgrel = 1
+ url = https://poppler.freedesktop.org/
+ arch = x86_64
+ license = GPL
+ makedepends = lib32-libjpeg
+ makedepends = lib32-gcc-libs
+ makedepends = lib32-cairo
+ makedepends = lib32-fontconfig
+ makedepends = lib32-gtk3
+ makedepends = lib32-lcms2
+ makedepends = gobject-introspection
+ makedepends = lib32-icu
+ makedepends = git
+ makedepends = nss
+ makedepends = lib32-curl
+ makedepends = poppler-data
+ makedepends = cmake
+ makedepends = python
+ makedepends = boost
+ makedepends = poppler
+ options = !emptydirs
+ source = https://poppler.freedesktop.org/poppler-0.85.0.tar.xz
+ source = https://poppler.freedesktop.org/poppler-0.85.0.tar.xz.sig
+ source = test::git+https://anongit.freedesktop.org/git/poppler/test/#commit=72bff390035819a4ccb54c767265aba2792eaf3b
+ source = pkgconf32
+ sha512sums = 2311bde5ae52e065c12a6129f500469860f5ebefafc3f7be581393f08c2121f3eae57394ff54c1f83ee1b926f28c61530bcd8149d42de10a16b9ba7345f2604e
+ sha512sums = SKIP
+ sha512sums = SKIP
+ sha512sums = f704e11f3054312e35974194af845e00fdc795aa97e82d425fb52ff8e628702926551b583f0354f9f9e7eafeb71c7f348c288457ff19a8c4807c58f637d0d946
+
+pkgname = lib32-poppler
+ pkgdesc = PDF rendering library based on xpdf 3.0 (32-bit)
+ depends = lib32-libjpeg
+ depends = lib32-gcc-libs
+ depends = lib32-cairo
+ depends = lib32-fontconfig
+ depends = lib32-openjpeg2
+ depends = lib32-lcms2
+ depends = poppler=0.85.0
+ depends = lib32-nss
+ depends = curl
+ optdepends = poppler-data: encoding data to display PDF documents containing CJK characters
+
+pkgname = lib32-poppler-glib
+ pkgdesc = Poppler glib bindings (32-bit)
+ depends = lib32-poppler=0.85.0
+ depends = lib32-glib2
+ depends = poppler-glib=0.85.0
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..9b180b81807
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+poppler-*.tar.*
+lib32-poppler-*.pkg.tar.xz
+src/
+pkg/
+test/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..986a8def174
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,84 @@
+# Maintainer: Behnam Momeni <sbmomeni [at the] gmail [dot] com>
+# Contributor: AndyRTR <andyrtr@archlinux.org>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+
+pkgbase=lib32-poppler
+_pkgbase=poppler
+pkgname=('lib32-poppler' 'lib32-poppler-glib')
+pkgver=0.85.0
+pkgrel=1
+arch=(x86_64)
+license=('GPL')
+makedepends=('lib32-libjpeg' 'lib32-gcc-libs' 'lib32-cairo'
+ 'lib32-fontconfig' 'lib32-gtk3' 'lib32-lcms2'
+ 'gobject-introspection' 'lib32-icu' 'git' 'nss'
+ 'lib32-curl' 'poppler-data' 'cmake' 'python' 'boost'
+ 'poppler')
+options=('!emptydirs')
+url="https://poppler.freedesktop.org/"
+source=(https://poppler.freedesktop.org/${_pkgbase}-${pkgver}.tar.xz{,.sig}
+ test::git+https://anongit.freedesktop.org/git/poppler/test/#commit=72bff390035819a4ccb54c767265aba2792eaf3b
+ pkgconf32)
+sha512sums=('2311bde5ae52e065c12a6129f500469860f5ebefafc3f7be581393f08c2121f3eae57394ff54c1f83ee1b926f28c61530bcd8149d42de10a16b9ba7345f2604e'
+ 'SKIP'
+ 'SKIP'
+ 'f704e11f3054312e35974194af845e00fdc795aa97e82d425fb52ff8e628702926551b583f0354f9f9e7eafeb71c7f348c288457ff19a8c4807c58f637d0d946')
+validpgpkeys=('CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7') # "Albert Astals Cid <aacid@kde.org>"
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ export CFLAGS="-m32 ${CFLAGS}"
+ export CXXFLAGS="-m32 ${CXXFLAGS}"
+ export LDFLAGS="-m32 ${LDFLAGS}"
+ cd build
+ cmake ../${_pkgbase}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DCMAKE_INSTALL_LIBDIR="/usr/lib32" \
+ -DPKG_CONFIG_EXECUTABLE="$srcdir/pkgconf32" \
+ -DENABLE_LIBOPENJPEG="unmaintained" \
+ -DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
+ -DENABLE_GTK_DOC=OFF \
+ -DENABLE_QT5=OFF
+ make
+}
+
+check() {
+ cd build
+ LANG=en_US.UTF8 make test
+}
+
+package_lib32-poppler() {
+ pkgdesc="PDF rendering library based on xpdf 3.0 (32-bit)"
+ depends=('lib32-libjpeg' 'lib32-gcc-libs' 'lib32-cairo'
+ 'lib32-fontconfig' 'lib32-openjpeg2' 'lib32-lcms2'
+ "poppler=${pkgver}" 'lib32-nss' 'curl')
+ optdepends=('poppler-data: encoding data to display PDF documents containing CJK characters')
+
+ cd build
+ make DESTDIR="${pkgdir}" install
+
+ # cleanup for splitted build
+ rm -r "${pkgdir}/usr/"{bin,include,share}
+ rm -vf "${pkgdir}"/usr/lib32/libpoppler-glib.*
+ rm -vf "${pkgdir}"/usr/lib32/pkgconfig/poppler-glib.pc
+ rm -vrf "${pkgdir}"/usr/lib32/gir*
+}
+
+package_lib32-poppler-glib() {
+ pkgdesc="Poppler glib bindings (32-bit)"
+ depends=("lib32-poppler=${pkgver}" 'lib32-glib2'
+ "poppler-glib=${pkgver}")
+
+ cd build
+
+ make -C glib DESTDIR="${pkgdir}" install
+ install -m755 -d "${pkgdir}/usr/lib32/pkgconfig"
+ install -m644 poppler-glib.pc "${pkgdir}/usr/lib32/pkgconfig/"
+ rm -r "${pkgdir}/usr/include"
+ rm -vf "${pkgdir}"/usr/lib32/libpoppler.*
+}
+
diff --git a/pkgconf32 b/pkgconf32
new file mode 100755
index 00000000000..517eab08730
--- /dev/null
+++ b/pkgconf32
@@ -0,0 +1,2 @@
+#!/usr/bin/bash
+PKG_CONFIG_LIBDIR='/usr/lib32/pkgconfig:/usr/share/pkgconfig:.' /usr/bin/pkgconf $@