summaryrefslogtreecommitdiff
path: root/community/mupdf/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mupdf/PKGBUILD')
-rw-r--r--community/mupdf/PKGBUILD30
1 files changed, 18 insertions, 12 deletions
diff --git a/community/mupdf/PKGBUILD b/community/mupdf/PKGBUILD
index 709e2c14b..6788ab8ab 100644
--- a/community/mupdf/PKGBUILD
+++ b/community/mupdf/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 99335 2013-10-27 10:47:47Z bpiotrowski $
+# $Id: PKGBUILD 105051 2014-01-30 18:29:49Z bpiotrowski $
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Brad Fanella <bradfanella@archlinux.us>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
@@ -7,23 +7,34 @@
pkgname=mupdf
pkgver=1.3
-pkgrel=7
+pkgrel=8
pkgdesc='Lightweight PDF and XPS viewer'
arch=('i686' 'x86_64' 'mips64el')
url='http://mupdf.com'
license=('GPL3')
-depends=('curl' 'desktop-file-utils' 'freetype2' 'jbig2dec' 'libjpeg' 'libxext' 'openssl')
+depends=('curl' 'desktop-file-utils' 'freetype2' 'jbig2dec' 'libjpeg' 'libxext'
+ 'openssl')
install=mupdf.install
options=('staticlibs')
source=(https://mupdf.googlecode.com/files/$pkgname-$pkgver-source.tar.gz
- mupdf-1.3-system-libcurl.patch)
-sha256sums=('aba8b31bee9cc0a16abedab5e31c81c65996cba5591e62a50a79bea2a63d4478'
- '41a3b6df736f971e91c066e73afac286eec8fa37af244a55df52e8b173646f42')
+ mupdf-1.3-system-libcurl.patch
+ mupdf-1.3-stack-buffer-overflow-in-xps_parse_color.patch)
+md5sums=('fe53c2a56ebd7759f5f965bc4ff66359'
+ '6d11387e9bb9897f6f1ecc3956f8e2d4'
+ 'f4d785b28f711e12d4a078ce9b3ed8f5')
prepare() {
cd $pkgname-$pkgver-source
rm -rf thirdparty/{curl,freetype,jpeg,zlib,jbig2dec}
- patch -Np1 -i ../mupdf-1.3-system-libcurl.patch
+ patch -p1 -i ../mupdf-1.3-system-libcurl.patch
+ patch -p1 -i ../mupdf-1.3-stack-buffer-overflow-in-xps_parse_color.patch
+
+ cd platform/debian
+ sed -i -e 's/mupdf.xpm/mupdf/' \
+ -e 's/application\/x-pdf/application\/x-pdf/' \
+ -e 's/mupdf-select-file/mupdf/' \
+ -e 's/^$/NoDisplay=true/' \
+ mupdf.desktop
}
build() {
@@ -42,11 +53,6 @@ package() {
rm "$pkgdir"/usr/bin/mupdf-x11
cd platform/debian
- sed -i -e 's/mupdf.xpm/mupdf/' \
- -e 's/application\/x-pdf/application\/x-pdf/' \
- -e 's/mupdf-select-file/mupdf/' \
- -e 's/^$/NoDisplay=true/' \
- mupdf.desktop
install -Dm644 mupdf.desktop "$pkgdir"/usr/share/applications/mupdf.desktop
install -Dm644 mupdf.xpm "$pkgdir"/usr/share/pixmaps/mupdf.xpm