summaryrefslogtreecommitdiff
path: root/libre/epdfview
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-05-12 06:40:35 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-05-12 06:45:46 -0300
commitbaa7ad63bb33b955a614d2e78100a423729dbd3d (patch)
tree93c13854d92ef7bfa27778556294dbbe50db7c83 /libre/epdfview
parentf4849c786b3b8e3fc9824d0646364902e8e80e1c (diff)
epdfview-0.1.8-6.parabola1: fix FS#44936 -> https://bugs.archlinux.org/task/44936
Diffstat (limited to 'libre/epdfview')
-rw-r--r--libre/epdfview/PKGBUILD15
-rw-r--r--libre/epdfview/epdfview-0.1.8-pictures.patch13
2 files changed, 22 insertions, 6 deletions
diff --git a/libre/epdfview/PKGBUILD b/libre/epdfview/PKGBUILD
index adef21e0e..a8e27d41f 100644
--- a/libre/epdfview/PKGBUILD
+++ b/libre/epdfview/PKGBUILD
@@ -1,6 +1,6 @@
-# $Id: PKGBUILD 105182 2014-02-02 12:39:48Z bpiotrowski $
-# Maintainer (Arch): Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
+# $Id: PKGBUILD 133276 2015-05-12 02:42:33Z kkeen $
# Maintainer (Arch): Kyle Keen <keenerd@gmail.com>
+# Contributor (Arch): Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor (Arch): schuay <jakob.gruber@gmail.com>
# Contributor (Arch): Tom K <tomk@runbox.com>
# Contributor (Arch): Thayer Williams <thayer@archlinux.org>
@@ -9,7 +9,7 @@
pkgname=epdfview
pkgver=0.1.8
-pkgrel=5.parabola1
+pkgrel=6.parabola1
pkgdesc='Lightweight PDF document viewer, without nonfree suggestions'
url="http://freecode.com/projects/$pkgname"
arch=('i686' 'x86_64' 'mips64el')
@@ -22,11 +22,13 @@ install="$pkgname.install"
source=(ftp://ftp.slackware.com/.1/blfs/conglomeration/$pkgname/$pkgname-$pkgver.tar.bz2
$pkgname-0.1.8-swap-the-blue-and-red-channel.patch
$pkgname-0.1.8-glib2-headers.patch
- $pkgname-0.1.8-modern-cups.patch)
+ $pkgname-0.1.8-modern-cups.patch
+ $pkgname-0.1.8-pictures.patch)
md5sums=('e50285b01612169b2594fea375f53ae4'
'7f9ea101a41f5b4e999fd024f423d41f'
'2fffa9c7cd4c5f0744803591c2f162a3'
- '5c2cf5612d2a7dfe6cf005b94aeb5ada')
+ '5c2cf5612d2a7dfe6cf005b94aeb5ada'
+ '60064c976f273d86d6254c71b583cf4d')
prepare() {
cd $pkgname-$pkgver
@@ -37,7 +39,8 @@ prepare() {
patch -p1 -i ../$pkgname-0.1.8-swap-the-blue-and-red-channel.patch
patch -p1 -i ../$pkgname-0.1.8-glib2-headers.patch # FS#30116
- patch -p1 -i ../$pkgname-0.1.8-modern-cups.patch # FS#32511
+ patch -p1 -i ../$pkgname-0.1.8-modern-cups.patch # FS#32511
+ patch -p1 -i ../$pkgname-0.1.8-pictures.patch # FS#44936
}
build() {
diff --git a/libre/epdfview/epdfview-0.1.8-pictures.patch b/libre/epdfview/epdfview-0.1.8-pictures.patch
new file mode 100644
index 000000000..5c42cb266
--- /dev/null
+++ b/libre/epdfview/epdfview-0.1.8-pictures.patch
@@ -0,0 +1,13 @@
+diff --git a/src/PDFDocument.cxx b/src/PDFDocument.cxx
+index df5d75f..782f806 100644
+--- a/src/PDFDocument.cxx
++++ b/src/PDFDocument.cxx
+@@ -616,7 +616,7 @@ PDFDocument::renderPage (gint pageNum)
+ #if defined (HAVE_POPPLER_0_17_0)
+ cairo_surface_t *surface = cairo_image_surface_create_for_data (
+ renderedPage->getData (),
+- CAIRO_FORMAT_RGB24, width, height,
++ CAIRO_FORMAT_ARGB32, width, height,
+ renderedPage->getRowStride ());
+ cairo_t *context = cairo_create (surface);
+ cairo_save(context);