[arch-commits] Commit in pdf2djvu/repos (3 files)

Felix Yan felixonmars at archlinux.org
Thu Nov 1 22:13:54 UTC 2018


    Date: Thursday, November 1, 2018 @ 22:13:53
  Author: felixonmars
Revision: 401167

archrelease: copy trunk to community-staging-x86_64

Added:
  pdf2djvu/repos/community-staging-x86_64/
  pdf2djvu/repos/community-staging-x86_64/PKGBUILD
    (from rev 401166, pdf2djvu/trunk/PKGBUILD)
  pdf2djvu/repos/community-staging-x86_64/pdf2djvu-poppler-0.71.patch
    (from rev 401166, pdf2djvu/trunk/pdf2djvu-poppler-0.71.patch)

-----------------------------+
 PKGBUILD                    |   46 ++++++++++++++++++++++++++++++++++++++++++
 pdf2djvu-poppler-0.71.patch |   11 ++++++++++
 2 files changed, 57 insertions(+)

Copied: pdf2djvu/repos/community-staging-x86_64/PKGBUILD (from rev 401166, pdf2djvu/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-01 22:13:53 UTC (rev 401167)
@@ -0,0 +1,46 @@
+# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+
+pkgname=pdf2djvu
+pkgver=0.9.10
+pkgrel=3
+pkgdesc="Creates DjVu files from PDF files"
+arch=('x86_64')
+url="http://jwilk.net/software/pdf2djvu"
+license=('GPL')
+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.69.0.patch::https://github.com/jwilk/pdf2djvu/commit/2a82de9b1d.patch
+        pdf2djvu-poppler-0.71.patch)
+sha256sums=('76479a86fdb6457ffc415e79561e9ea3a4027f1faffb9080445873b3c97bdb08'
+            'SKIP'
+            'f5a7c87cd38403f88655476d5c325e6b527b85e6fafce393ad6e9a6534803d8f'
+            'e6096b771fd8dc4d15603417a6593f60976d077e65f44f17781543dc3104cf70')
+validpgpkeys=('CDB5A1243ACDB63009AD07212D4EB3A6015475F5')
+
+prepare() {
+        cd ${pkgname}-${pkgver}
+        patch -Np1 -i ../pdf2djvu-poppler-0.69.0.patch
+        patch -p1 -i ../pdf2djvu-poppler-0.71.patch # fix build with poppler 0.71
+}
+
+build() {
+    cd ${pkgname}-${pkgver}
+
+    ./configure --prefix=/usr
+    make
+}
+
+check() {
+    cd ${pkgname}-${pkgver}
+
+    sed -i 's/nosetests/nosetests2/' tests/Makefile
+    make test
+}
+
+package() {
+    cd ${pkgname}-${pkgver}
+
+    make install DESTDIR=${pkgdir}
+}

Copied: pdf2djvu/repos/community-staging-x86_64/pdf2djvu-poppler-0.71.patch (from rev 401166, pdf2djvu/trunk/pdf2djvu-poppler-0.71.patch)
===================================================================
--- community-staging-x86_64/pdf2djvu-poppler-0.71.patch	                        (rev 0)
+++ community-staging-x86_64/pdf2djvu-poppler-0.71.patch	2018-11-01 22:13:53 UTC (rev 401167)
@@ -0,0 +1,11 @@
+--- pdf2djvu-0.9.9/pdf-backend.hh.orig	2018-11-01 21:56:45.163962119 +0000
++++ pdf2djvu-0.9.9/pdf-backend.hh	2018-11-01 21:57:04.084011561 +0000
+@@ -81,7 +81,7 @@
+   typedef ::Dict Dict;
+   typedef ::Catalog Catalog;
+   typedef ::GooString String;
+-  typedef ::GBool Bool;
++  typedef bool Bool;
+   typedef ::Goffset Offset;
+ 
+ /* type definitions — annotations


More information about the arch-commits mailing list