[arch-commits] Commit in zathura-pdf-mupdf/repos (6 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Thu Feb 4 17:02:12 UTC 2016
Date: Thursday, February 4, 2016 @ 18:02:11
Author: svenstaro
Revision: 160327
archrelease: copy trunk to community-i686, community-x86_64
Added:
zathura-pdf-mupdf/repos/community-i686/PKGBUILD
(from rev 160326, zathura-pdf-mupdf/trunk/PKGBUILD)
zathura-pdf-mupdf/repos/community-i686/fix-colorspace.patch
(from rev 160326, zathura-pdf-mupdf/trunk/fix-colorspace.patch)
zathura-pdf-mupdf/repos/community-x86_64/PKGBUILD
(from rev 160326, zathura-pdf-mupdf/trunk/PKGBUILD)
zathura-pdf-mupdf/repos/community-x86_64/fix-colorspace.patch
(from rev 160326, zathura-pdf-mupdf/trunk/fix-colorspace.patch)
Deleted:
zathura-pdf-mupdf/repos/community-i686/PKGBUILD
zathura-pdf-mupdf/repos/community-x86_64/PKGBUILD
---------------------------------------+
/PKGBUILD | 74 ++++++++++++++++++++++++++++++++
community-i686/PKGBUILD | 31 -------------
community-i686/fix-colorspace.patch | 25 ++++++++++
community-x86_64/PKGBUILD | 31 -------------
community-x86_64/fix-colorspace.patch | 25 ++++++++++
5 files changed, 124 insertions(+), 62 deletions(-)
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2016-02-04 17:02:01 UTC (rev 160326)
+++ community-i686/PKGBUILD 2016-02-04 17:02:11 UTC (rev 160327)
@@ -1,31 +0,0 @@
-# $Id: PKGBUILD 67819 2012-03-14 16:22:14Z spupykin $
-# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
-# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Moritz Lipp <mlq at pwmt.org>
-
-pkgname=zathura-pdf-mupdf
-pkgver=0.2.9
-pkgrel=1
-
-pkgdesc="PDF support for Zathura (MuPDF backend)"
-url="https://pwmt.org/projects/zathura-pdf-mupdf/"
-arch=('i686' 'x86_64')
-license=('custom')
-
-conflicts=('zathura-pdf-poppler')
-
-depends=('zathura' 'jbig2dec' 'openjpeg2' 'cairo')
-makedepends=('mupdf>=1.4')
-
-source=(https://pwmt.org/projects/zathura/plugins/download/zathura-pdf-mupdf-$pkgver.tar.gz)
-sha1sums=(55b47ed2962589eeef88168554aa5bd2f6557ed3)
-
-build() {
- make -C zathura-pdf-mupdf-$pkgver MUPDF_LIB="-lmupdf -lmujs"
-}
-
-package(){
- make -C zathura-pdf-mupdf-$pkgver DESTDIR="$pkgdir" install
- install -Dm0644 zathura-pdf-mupdf-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: zathura-pdf-mupdf/repos/community-i686/PKGBUILD (from rev 160326, zathura-pdf-mupdf/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2016-02-04 17:02:11 UTC (rev 160327)
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 67819 2012-03-14 16:22:14Z spupykin $
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Moritz Lipp <mlq at pwmt.org>
+
+pkgname=zathura-pdf-mupdf
+pkgver=0.2.9
+pkgrel=2
+
+pkgdesc="PDF support for Zathura (MuPDF backend)"
+url="https://pwmt.org/projects/zathura-pdf-mupdf/"
+arch=('i686' 'x86_64')
+license=('custom')
+
+conflicts=('zathura-pdf-poppler')
+
+depends=('zathura' 'jbig2dec' 'openjpeg2' 'cairo')
+makedepends=('mupdf>=1.4')
+
+source=(https://pwmt.org/projects/zathura/plugins/download/zathura-pdf-mupdf-$pkgver.tar.gz
+ fix-colorspace.patch)
+sha1sums=('55b47ed2962589eeef88168554aa5bd2f6557ed3'
+ '47814ed0e2431a9c25cb7e3c7444526b1eff0eab')
+
+prepare() {
+ patch -d zathura-pdf-mupdf-$pkgver < $srcdir/fix-colorspace.patch
+}
+
+build() {
+ make -C zathura-pdf-mupdf-$pkgver MUPDF_LIB="-lmupdf -lmujs"
+}
+
+package(){
+ make -C zathura-pdf-mupdf-$pkgver DESTDIR="$pkgdir" install
+ install -Dm0644 zathura-pdf-mupdf-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
Copied: zathura-pdf-mupdf/repos/community-i686/fix-colorspace.patch (from rev 160326, zathura-pdf-mupdf/trunk/fix-colorspace.patch)
===================================================================
--- community-i686/fix-colorspace.patch (rev 0)
+++ community-i686/fix-colorspace.patch 2016-02-04 17:02:11 UTC (rev 160327)
@@ -0,0 +1,25 @@
+From 2f083aba12994c1c8be7a85f543b38c2c2662335 Mon Sep 17 00:00:00 2001
+From: Moritz Lipp <mlq at pwmt.org>
+Date: Thu, 21 Jan 2016 11:38:31 +0100
+Subject: [PATCH] Use correct color space
+
+---
+ render.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/render.c b/render.c
+index 99d3b9e..2a92a23 100644
+--- a/render.c
++++ b/render.c
+@@ -36,7 +36,7 @@ pdf_page_render_to_buffer(mupdf_document_t* mupdf_document, mupdf_page_t* mupdf_
+ fz_irect irect = { .x1 = page_width, .y1 = page_height };
+ fz_rect rect = { .x1 = page_width, .y1 = page_height };
+
+- fz_colorspace* colorspace = fz_device_rgb(mupdf_document->ctx);
++ fz_colorspace* colorspace = fz_device_bgr(mupdf_document->ctx);
+ fz_pixmap* pixmap = fz_new_pixmap_with_bbox_and_data(mupdf_page->ctx, colorspace, &irect, image);
+ fz_clear_pixmap_with_value(mupdf_page->ctx, pixmap, 0xFF);
+
+--
+libgit2 0.23.3
+
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2016-02-04 17:02:01 UTC (rev 160326)
+++ community-x86_64/PKGBUILD 2016-02-04 17:02:11 UTC (rev 160327)
@@ -1,31 +0,0 @@
-# $Id: PKGBUILD 67819 2012-03-14 16:22:14Z spupykin $
-# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
-# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Moritz Lipp <mlq at pwmt.org>
-
-pkgname=zathura-pdf-mupdf
-pkgver=0.2.9
-pkgrel=1
-
-pkgdesc="PDF support for Zathura (MuPDF backend)"
-url="https://pwmt.org/projects/zathura-pdf-mupdf/"
-arch=('i686' 'x86_64')
-license=('custom')
-
-conflicts=('zathura-pdf-poppler')
-
-depends=('zathura' 'jbig2dec' 'openjpeg2' 'cairo')
-makedepends=('mupdf>=1.4')
-
-source=(https://pwmt.org/projects/zathura/plugins/download/zathura-pdf-mupdf-$pkgver.tar.gz)
-sha1sums=(55b47ed2962589eeef88168554aa5bd2f6557ed3)
-
-build() {
- make -C zathura-pdf-mupdf-$pkgver MUPDF_LIB="-lmupdf -lmujs"
-}
-
-package(){
- make -C zathura-pdf-mupdf-$pkgver DESTDIR="$pkgdir" install
- install -Dm0644 zathura-pdf-mupdf-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: zathura-pdf-mupdf/repos/community-x86_64/PKGBUILD (from rev 160326, zathura-pdf-mupdf/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2016-02-04 17:02:11 UTC (rev 160327)
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 67819 2012-03-14 16:22:14Z spupykin $
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Moritz Lipp <mlq at pwmt.org>
+
+pkgname=zathura-pdf-mupdf
+pkgver=0.2.9
+pkgrel=2
+
+pkgdesc="PDF support for Zathura (MuPDF backend)"
+url="https://pwmt.org/projects/zathura-pdf-mupdf/"
+arch=('i686' 'x86_64')
+license=('custom')
+
+conflicts=('zathura-pdf-poppler')
+
+depends=('zathura' 'jbig2dec' 'openjpeg2' 'cairo')
+makedepends=('mupdf>=1.4')
+
+source=(https://pwmt.org/projects/zathura/plugins/download/zathura-pdf-mupdf-$pkgver.tar.gz
+ fix-colorspace.patch)
+sha1sums=('55b47ed2962589eeef88168554aa5bd2f6557ed3'
+ '47814ed0e2431a9c25cb7e3c7444526b1eff0eab')
+
+prepare() {
+ patch -d zathura-pdf-mupdf-$pkgver < $srcdir/fix-colorspace.patch
+}
+
+build() {
+ make -C zathura-pdf-mupdf-$pkgver MUPDF_LIB="-lmupdf -lmujs"
+}
+
+package(){
+ make -C zathura-pdf-mupdf-$pkgver DESTDIR="$pkgdir" install
+ install -Dm0644 zathura-pdf-mupdf-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
Copied: zathura-pdf-mupdf/repos/community-x86_64/fix-colorspace.patch (from rev 160326, zathura-pdf-mupdf/trunk/fix-colorspace.patch)
===================================================================
--- community-x86_64/fix-colorspace.patch (rev 0)
+++ community-x86_64/fix-colorspace.patch 2016-02-04 17:02:11 UTC (rev 160327)
@@ -0,0 +1,25 @@
+From 2f083aba12994c1c8be7a85f543b38c2c2662335 Mon Sep 17 00:00:00 2001
+From: Moritz Lipp <mlq at pwmt.org>
+Date: Thu, 21 Jan 2016 11:38:31 +0100
+Subject: [PATCH] Use correct color space
+
+---
+ render.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/render.c b/render.c
+index 99d3b9e..2a92a23 100644
+--- a/render.c
++++ b/render.c
+@@ -36,7 +36,7 @@ pdf_page_render_to_buffer(mupdf_document_t* mupdf_document, mupdf_page_t* mupdf_
+ fz_irect irect = { .x1 = page_width, .y1 = page_height };
+ fz_rect rect = { .x1 = page_width, .y1 = page_height };
+
+- fz_colorspace* colorspace = fz_device_rgb(mupdf_document->ctx);
++ fz_colorspace* colorspace = fz_device_bgr(mupdf_document->ctx);
+ fz_pixmap* pixmap = fz_new_pixmap_with_bbox_and_data(mupdf_page->ctx, colorspace, &irect, image);
+ fz_clear_pixmap_with_value(mupdf_page->ctx, pixmap, 0xFF);
+
+--
+libgit2 0.23.3
+
More information about the arch-commits
mailing list