summaryrefslogtreecommitdiff
path: root/community/mupdf/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mupdf/PKGBUILD')
-rw-r--r--community/mupdf/PKGBUILD35
1 files changed, 14 insertions, 21 deletions
diff --git a/community/mupdf/PKGBUILD b/community/mupdf/PKGBUILD
index 5dbd5a16b..c20a92469 100644
--- a/community/mupdf/PKGBUILD
+++ b/community/mupdf/PKGBUILD
@@ -1,46 +1,39 @@
-# $Id: PKGBUILD 92586 2013-06-09 13:32:10Z bpiotrowski $
+# $Id: PKGBUILD 95688 2013-08-15 16:50:34Z bpiotrowski $
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Brad Fanella <bradfanella@archlinux.us>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Pierre-Paul Paquin <pierrepaulpaquin@gmail.com>
-# Contributor: xduugu (.desktop and install files)
+# Contributor: xduugu
pkgname=mupdf
-pkgver=1.2
-pkgrel=3
+pkgver=1.3
+pkgrel=1
pkgdesc='Lightweight PDF and XPS viewer'
arch=('i686' 'x86_64')
url='http://mupdf.com'
license=('GPL3')
-depends=('freetype2' 'libjpeg' 'jbig2dec' 'openjpeg' 'libxext' 'desktop-file-utils' 'xdg-utils')
+depends=('desktop-file-utils' 'libxext' 'openssl')
install=mupdf.install
-source=(https://mupdf.googlecode.com/files/$pkgname-$pkgver-source.zip
- mupdf-1.2-fix-dirty-flag-handling.patch)
-sha256sums=('9bc9e31ec27c091dad37f70940bd799e46ab6da4299bc58e803bff3dbb07dc3b'
- 'd5c9ab3c5e9975909562230569a149a569f44fcd2b24c0b57e889b541a017f10')
-
-prepare() {
- cd $pkgname-$pkgver-source
- patch -Np1 -i "$srcdir"/mupdf-1.2-fix-dirty-flag-handling.patch
-}
+source=(https://mupdf.googlecode.com/files/$pkgname-$pkgver-source.tar.gz)
+sha256sums=('aba8b31bee9cc0a16abedab5e31c81c65996cba5591e62a50a79bea2a63d4478')
build() {
CFLAGS+=' -fPIC'
CXXFLAGS+=' -fPIC'
cd $pkgname-$pkgver-source
- rm -rf thirdparty
- make build=release prefix=/usr
+ make build=release
}
package() {
cd $pkgname-$pkgver-source
make build=release prefix="$pkgdir"/usr install
- sed -i 's/mupdf.xpm/mupdf/' debian/mupdf.desktop
- sed -i 's/application\/x-pdf/application\/x-pdf/' debian/mupdf.desktop
- install -Dm644 debian/mupdf.desktop "$pkgdir"/usr/share/applications/mupdf.desktop
- install -Dm644 debian/mupdf.xpm "$pkgdir"/usr/share/pixmaps/mupdf.xpm
+ cd platform/debian
+ sed -i 's/mupdf.xpm/mupdf/' mupdf.desktop
+ sed -i 's/application\/x-pdf/application\/x-pdf/' mupdf.desktop
+ install -Dm644 mupdf.desktop "$pkgdir"/usr/share/applications/mupdf.desktop
+ install -Dm644 mupdf.xpm "$pkgdir"/usr/share/pixmaps/mupdf.xpm
- chmod 644 "$pkgdir"/usr/lib/libfitz.a
+ chmod 644 "$pkgdir"/usr/lib/libmupdf{,-js-none}.a
}