summaryrefslogtreecommitdiff
path: root/community/mupdf
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-04-27 16:17:51 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-04-27 16:17:51 +0200
commit0ee0392ee9301df31f6e3c601214bb250112fa75 (patch)
tree3d91576bf751a8a45ddad77e0a37c2d8fd4fa91f /community/mupdf
parenta3ba265c32b1de731745e1abc812f5d21bcd6aaf (diff)
parent5233daa5825f00ccf0722ef9733ea6b3bbd44bc8 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/dwdiff/PKGBUILD community/ejabberd/PKGBUILD community/gnome-settings-daemon-updates/PKGBUILD community/gpicview/PKGBUILD community/libgexiv2/PKGBUILD community/mapnik/PKGBUILD community/mplayer2/PKGBUILD community/open-vm-tools/PKGBUILD community/vdrift/PKGBUILD community/xboard/PKGBUILD core/openssh/PKGBUILD extra/boost/PKGBUILD extra/dconf/PKGBUILD extra/elfutils/PKGBUILD extra/gconf/PKGBUILD extra/gnome-control-center/PKGBUILD extra/gnome-disk-utility/PKGBUILD extra/gnome-menus/PKGBUILD extra/gnome-panel/PKGBUILD extra/gnome-power-manager/PKGBUILD extra/gnome-themes-standard/PKGBUILD extra/gobject-introspection/PKGBUILD extra/gtk3/PKGBUILD extra/gvfs/PKGBUILD extra/icu/PKGBUILD extra/libgsf/PKGBUILD extra/libimobiledevice/PKGBUILD extra/libplist/PKGBUILD extra/libreoffice/PKGBUILD extra/libwebkit/PKGBUILD extra/mutter/PKGBUILD extra/pango/PKGBUILD extra/php/PKGBUILD extra/pidgin/PKGBUILD extra/telepathy-kde-accounts-kcm/PKGBUILD extra/telepathy-kde-approver/PKGBUILD extra/telepathy-kde-auth-handler/PKGBUILD extra/telepathy-kde-contact-list/PKGBUILD extra/telepathy-kde-filetransfer-handler/PKGBUILD extra/telepathy-kde-integration-module/PKGBUILD extra/telepathy-kde-send-file/PKGBUILD extra/telepathy-kde-text-ui/PKGBUILD extra/totem-plparser/PKGBUILD extra/virtuoso/PKGBUILD extra/yelp/PKGBUILD libre/unarchiver/PKGBUILD multilib/lib32-gdk-pixbuf2/PKGBUILD multilib/lib32-glib2/PKGBUILD multilib/lib32-pango/PKGBUILD testing/binutils/PKGBUILD
Diffstat (limited to 'community/mupdf')
-rw-r--r--community/mupdf/PKGBUILD39
-rw-r--r--community/mupdf/mupdf.install1
2 files changed, 13 insertions, 27 deletions
diff --git a/community/mupdf/PKGBUILD b/community/mupdf/PKGBUILD
index ac9609371..a7687df62 100644
--- a/community/mupdf/PKGBUILD
+++ b/community/mupdf/PKGBUILD
@@ -1,13 +1,13 @@
-# $Id: PKGBUILD 67364 2012-03-10 11:47:55Z bpiotrowski $
-# Maintainer: Bartłomiej Piotrowski
+# $Id: PKGBUILD 69884 2012-04-25 14:08:08Z 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)
pkgname=mupdf
-pkgver=0.9
-pkgrel=2
+pkgver=1.0
+pkgrel=1
pkgdesc="lightweight PDF viewer and toolkit written in portable C"
arch=('i686' 'x86_64' 'mips64el')
url="http://mupdf.com"
@@ -15,38 +15,25 @@ license=('GPL3')
depends=('freetype2' 'libjpeg' 'jbig2dec' 'openjpeg' 'libxext' 'desktop-file-utils')
install=mupdf.install
source=("http://mupdf.com/download/$pkgname-$pkgver-source.tar.gz")
-md5sums=('76640ee16a797a27fe49cc0eaa87ce3a')
+md5sums=('d986ab98e2b035b7abd61afc474562b3')
build() {
CFLAGS+=" -fPIC"
CXXFLAGS+=" -fPIC"
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$srcdir"/$pkgname-$pkgver-source
make build=release prefix="$pkgdir/usr"
}
package() {
- # Install
- cd "$srcdir/$pkgname-$pkgver"
- make build=release prefix="${pkgdir}/usr" install
+ cd "$srcdir"/$pkgname-$pkgver-source
+ make build=release prefix="$pkgdir/usr" install
- # Rename executables
- msg "Renaming executables"
- cd "${pkgdir}/usr/bin"
- for i in pdf*; do
- mv "$i" "$i-mupdf";
- done
+ sed -i 's/mupdf.xpm/mupdf/' debian/mupdf.desktop
+ sed -i 's/application\/x-pdf/application\/x-pdf/' debian/mupdf.desktop
- # 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
+ install -Dm644 debian/mupdf.desktop "$pkgdir"/usr/share/applications/mupdf.desktop
+ install -Dm644 debian/mupdf.xpm "$pkgdir"/usr/share/pixmaps/mupdf.xpm
- # Install other stuff
- 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}
+ chmod 644 "$pkgdir"/usr/lib/libfitz.a
}
diff --git a/community/mupdf/mupdf.install b/community/mupdf/mupdf.install
index 7f12704ae..b4632d36d 100644
--- a/community/mupdf/mupdf.install
+++ b/community/mupdf/mupdf.install
@@ -1,5 +1,4 @@
post_install() {
- [ -x /usr/bin/update-desktop-database ] || return 0
update-desktop-database -q
}