diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/mupdf |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/mupdf')
-rw-r--r-- | community/mupdf/PKGBUILD | 45 | ||||
-rw-r--r-- | community/mupdf/mupdf.install | 13 |
2 files changed, 58 insertions, 0 deletions
diff --git a/community/mupdf/PKGBUILD b/community/mupdf/PKGBUILD new file mode 100644 index 000000000..69c92cbc7 --- /dev/null +++ b/community/mupdf/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: 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.8.15 +pkgrel=1 +pkgdesc="lightweight PDF viewer and toolkit written in portable C" +arch=('i686' 'x86_64') +url="http://mupdf.com" +license=('GPL3') +depends=('freetype2' 'libjpeg' 'jbig2dec' 'openjpeg' 'libxext') +install=mupdf.install +source=("http://mupdf.com/download/$pkgname-$pkgver-source.tar.gz") +md5sums=('ba6159fab82999599d36534cda07957f') + +build() { + cd "$srcdir/$pkgname-$pkgver" + make build=release prefix="$pkgdir/usr" +} + +package() { + + # Install + cd "$srcdir/$pkgname-$pkgver" + 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 + + cd "$srcdir/$pkgname-$pkgver" + # Fix mupdf.desktop + sed -i "s/mupdf.xpm/mupdf/" debian/mupdf.desktop + sed -i "s/application\/x-pdf/application\/x-pdf/" debian/mupdf.desktop + + # 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" +} diff --git a/community/mupdf/mupdf.install b/community/mupdf/mupdf.install new file mode 100644 index 000000000..7f12704ae --- /dev/null +++ b/community/mupdf/mupdf.install @@ -0,0 +1,13 @@ +post_install() { + [ -x /usr/bin/update-desktop-database ] || return 0 + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} + |