Date: Thursday, February 4, 2016 @ 18:02:01 Author: svenstaro Revision: 160326
upgpkg: zathura-pdf-mupdf 0.2.9-2 Fix FS#48012 Added: zathura-pdf-mupdf/trunk/fix-colorspace.patch Modified: zathura-pdf-mupdf/trunk/PKGBUILD ----------------------+ PKGBUILD | 12 +++++++++--- fix-colorspace.patch | 25 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-02-04 17:00:53 UTC (rev 160325) +++ PKGBUILD 2016-02-04 17:02:01 UTC (rev 160326) @@ -6,7 +6,7 @@ pkgname=zathura-pdf-mupdf pkgver=0.2.9 -pkgrel=1 +pkgrel=2 pkgdesc="PDF support for Zathura (MuPDF backend)" url="https://pwmt.org/projects/zathura-pdf-mupdf/" @@ -18,9 +18,15 @@ 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) +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" } Added: fix-colorspace.patch =================================================================== --- fix-colorspace.patch (rev 0) +++ fix-colorspace.patch 2016-02-04 17:02:01 UTC (rev 160326) @@ -0,0 +1,25 @@ +From 2f083aba12994c1c8be7a85f543b38c2c2662335 Mon Sep 17 00:00:00 2001 +From: Moritz Lipp <m...@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 +