[arch-commits] Commit in pdf2djvu/trunk (PKGBUILD pdf2djvu-poppler-0.76.patch)

Antonio Rojas arojas at archlinux.org
Tue Apr 23 21:56:58 UTC 2019


    Date: Tuesday, April 23, 2019 @ 21:56:57
  Author: arojas
Revision: 453245

Fix build with poppler 0.76

Added:
  pdf2djvu/trunk/pdf2djvu-poppler-0.76.patch
Modified:
  pdf2djvu/trunk/PKGBUILD

-----------------------------+
 PKGBUILD                    |    9 +++++++--
 pdf2djvu-poppler-0.76.patch |   11 +++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-23 21:47:44 UTC (rev 453244)
+++ PKGBUILD	2019-04-23 21:56:57 UTC (rev 453245)
@@ -11,12 +11,17 @@
 depends=('poppler' 'djvulibre' 'gcc-libs' 'graphicsmagick' 'exiv2')
 makedepends=('python2-nose' 'ttf-liberation')
 source=(https://github.com/jwilk/pdf2djvu/releases/download/$pkgver/pdf2djvu-$pkgver.tar.xz{,.asc}
-        pdf2djvu-poppler-0.72.0.patch::https://github.com/jwilk/pdf2djvu/commit/82699eee6b.patch)
+        pdf2djvu-poppler-0.76.patch)
 sha256sums=('03fa9d9aa1b8086b562e2461ed74e5f9f008f16bfc1459ba62fa3738b37d8e83'
             'SKIP'
-            'cc5ef76568fdd201586fa6e0b8e8e386628972ad75a597ea0790bb97718eef87')
+            '5b43f0a47ecf51756135c323df6720ed3bdde4cb6e2e754cf91ded6c03dce67c')
 validpgpkeys=('CDB5A1243ACDB63009AD07212D4EB3A6015475F5')
 
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i ../pdf2djvu-poppler-0.76.patch # Fix build with poppler 0.76
+}
+
 build() {
     cd ${pkgname}-${pkgver}
 

Added: pdf2djvu-poppler-0.76.patch
===================================================================
--- pdf2djvu-poppler-0.76.patch	                        (rev 0)
+++ pdf2djvu-poppler-0.76.patch	2019-04-23 21:56:57 UTC (rev 453245)
@@ -0,0 +1,11 @@
+--- pdf2djvu-0.9.12/pdf2djvu.cc.orig	2019-04-23 21:54:19.435727639 +0000
++++ pdf2djvu-0.9.12/pdf2djvu.cc	2019-04-23 21:54:33.762565515 +0000
+@@ -87,7 +87,7 @@
+     if (dest->isPageRef())
+     {
+       Ref pageref = dest->getPageRef();
+-      page = catalog->findPage(pageref.num, pageref.gen);
++      page = catalog->findPage(pageref);
+     }
+     else
+       page = dest->getPageNum();



More information about the arch-commits mailing list