# $Id: PKGBUILD 96166 2013-08-20 21:04:13Z bpiotrowski $ # Maintainer: Bartłomiej Piotrowski # Contributor: Brad Fanella # Contributor: Stefan Husmann # Contributor: Pierre-Paul Paquin # Contributor: xduugu pkgname=mupdf pkgver=1.3 pkgrel=3 pkgdesc='Lightweight PDF and XPS viewer' arch=('i686' 'x86_64') url='http://mupdf.com' license=('GPL3') depends=('desktop-file-utils' 'libxext' 'openssl') install=mupdf.install source=(https://mupdf.googlecode.com/files/$pkgname-$pkgver-source.tar.gz) sha256sums=('aba8b31bee9cc0a16abedab5e31c81c65996cba5591e62a50a79bea2a63d4478') build() { CFLAGS+=' -fPIC' CXXFLAGS+=' -fPIC' cd $pkgname-$pkgver-source make build=release CURL_LIBS='-lcurl -lpthread' } package() { cd $pkgname-$pkgver-source make build=release prefix="$pkgdir"/usr install mv "$pkgdir"/usr/bin/mupdf-x11-curl "$pkgdir"/usr/bin/mupdf 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/' \ 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/libmupdf{,-js-none}.a }