summaryrefslogtreecommitdiff
path: root/community/mupdf
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-03-14 10:24:35 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-03-14 10:24:35 +0100
commita4f3ca8891e50241ac2ca144949e92b26920ffaf (patch)
treed31841075429e437c4908580e8ec074f2fe40aa5 /community/mupdf
parent3156702a5deccd61451be9f7d8ba0fd212a3043b (diff)
parent01a0c4bc740842efa3bf1a7e1d6c8be5656e4e2a (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/aspell-ca/PKGBUILD community/corkscrew/PKGBUILD cross/mips64el-unknown-linux-gnu-binutils/PKGBUILD extra/gstreamer0.10-base/PKGBUILD extra/gstreamer0.10-good/PKGBUILD extra/gstreamer0.10-ugly/PKGBUILD extra/libxi/PKGBUILD extra/mesa/PKGBUILD extra/mkvtoolnix/PKGBUILD extra/mpc/PKGBUILD extra/poppler/PKGBUILD extra/xf86-video-siliconmotion/PKGBUILD extra/xorg-server/PKGBUILD gnome-unstable/gconf/PKGBUILD gnome-unstable/gnome-desktop/PKGBUILD gnome-unstable/network-manager-applet/PKGBUILD gnome-unstable/vte3/PKGBUILD multilib/chuck/PKGBUILD multilib/lib32-libpciaccess/PKGBUILD multilib/lib32-libx11/PKGBUILD multilib/lib32-libxcb/PKGBUILD multilib/lib32-libxcb/libxcb-1.1-no-pthread-stubs.patch multilib/lib32-libxft/PKGBUILD multilib/lib32-libxi/PKGBUILD multilib/lib32-llvm/PKGBUILD multilib/lib32-mesa/PKGBUILD testing/grep/PKGBUILD testing/sudo/PKGBUILD testing/xf86-input-joystick/PKGBUILD testing/xf86-input-wacom/PKGBUILD
Diffstat (limited to 'community/mupdf')
-rw-r--r--community/mupdf/PKGBUILD18
1 files changed, 12 insertions, 6 deletions
diff --git a/community/mupdf/PKGBUILD b/community/mupdf/PKGBUILD
index 35ef9ac83..ac9609371 100644
--- a/community/mupdf/PKGBUILD
+++ b/community/mupdf/PKGBUILD
@@ -1,28 +1,31 @@
-# $Id: PKGBUILD 55364 2011-09-10 10:56:13Z pschmitz $
-# Maintainer: Brad Fanella <bradfanella@archlinux.us>
+# $Id: PKGBUILD 67364 2012-03-10 11:47:55Z bpiotrowski $
+# Maintainer: Bartłomiej Piotrowski
+# 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)
pkgname=mupdf
pkgver=0.9
-pkgrel=1
+pkgrel=2
pkgdesc="lightweight PDF viewer and toolkit written in portable C"
arch=('i686' 'x86_64' 'mips64el')
url="http://mupdf.com"
license=('GPL3')
-depends=('freetype2' 'libjpeg' 'jbig2dec' 'openjpeg' 'libxext')
+depends=('freetype2' 'libjpeg' 'jbig2dec' 'openjpeg' 'libxext' 'desktop-file-utils')
install=mupdf.install
source=("http://mupdf.com/download/$pkgname-$pkgver-source.tar.gz")
md5sums=('76640ee16a797a27fe49cc0eaa87ce3a')
build() {
+ CFLAGS+=" -fPIC"
+ CXXFLAGS+=" -fPIC"
+
cd "$srcdir/$pkgname-$pkgver"
make build=release prefix="$pkgdir/usr"
}
package() {
-
# Install
cd "$srcdir/$pkgname-$pkgver"
make build=release prefix="${pkgdir}/usr" install
@@ -34,8 +37,8 @@ package() {
mv "$i" "$i-mupdf";
done
- cd "$srcdir/$pkgname-$pkgver"
# Fix mupdf.desktop
+ cd "$srcdir/$pkgname-$pkgver"
sed -i "s/mupdf.xpm/mupdf/" debian/mupdf.desktop
sed -i "s/application\/x-pdf/application\/x-pdf/" debian/mupdf.desktop
@@ -43,4 +46,7 @@ package() {
cd "$srcdir/$pkgname-$pkgver/debian"
install -Dm644 mupdf.desktop "$pkgdir/usr/share/applications/mupdf.desktop"
install -Dm644 mupdf.xpm "$pkgdir/usr/share/pixmaps/mupdf.xpm"
+
+ # Fix permissions
+ chmod 644 $pkgdir/usr/lib/{libmuxps.a,libfitz.a,libmupdf.a}
}