diff options
author | root <root@rshg054.dnsready.net> | 2013-09-01 02:34:45 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-09-01 02:34:45 -0700 |
commit | bf1faf85b813a0171c73fa31db1c5a5110d32420 (patch) | |
tree | 4c221d4b0dc3ca4f00da018be6d8959506b90123 /community/mupdf | |
parent | f20ef2edd6d039b732c288f67377cb752a8d5351 (diff) |
Sun Sep 1 02:29:48 PDT 2013
Diffstat (limited to 'community/mupdf')
-rw-r--r-- | community/mupdf/PKGBUILD | 22 | ||||
-rw-r--r-- | community/mupdf/mupdf-1.3-system-libcurl.patch | 21 |
2 files changed, 37 insertions, 6 deletions
diff --git a/community/mupdf/PKGBUILD b/community/mupdf/PKGBUILD index a957e6b26..b7f7e46ae 100644 --- a/community/mupdf/PKGBUILD +++ b/community/mupdf/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 96166 2013-08-20 21:04:13Z bpiotrowski $ +# $Id: PKGBUILD 96533 2013-08-31 09:24:59Z bpiotrowski $ # Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> # Contributor: Brad Fanella <bradfanella@archlinux.us> # Contributor: Stefan Husmann <stefan-husmann@t-online.de> @@ -7,15 +7,23 @@ pkgname=mupdf pkgver=1.3 -pkgrel=3 +pkgrel=4 pkgdesc='Lightweight PDF and XPS viewer' arch=('i686' 'x86_64') url='http://mupdf.com' license=('GPL3') -depends=('desktop-file-utils' 'libxext' 'openssl') +depends=('curl' 'desktop-file-utils' 'freetype2' 'jbig2dec' 'libjpeg' 'libxext' 'openssl') install=mupdf.install -source=(https://mupdf.googlecode.com/files/$pkgname-$pkgver-source.tar.gz) -sha256sums=('aba8b31bee9cc0a16abedab5e31c81c65996cba5591e62a50a79bea2a63d4478') +source=(https://mupdf.googlecode.com/files/$pkgname-$pkgver-source.tar.gz + mupdf-1.3-system-libcurl.patch) +sha256sums=('aba8b31bee9cc0a16abedab5e31c81c65996cba5591e62a50a79bea2a63d4478' + '41a3b6df736f971e91c066e73afac286eec8fa37af244a55df52e8b173646f42') + +prepare() { + cd $pkgname-$pkgver-source + rm -rf thirdparty/{curl,freetype,jpeg,zlib,jbig2dec} + patch -Np1 -i ../mupdf-1.3-system-libcurl.patch +} build() { CFLAGS+=' -fPIC' @@ -40,5 +48,7 @@ package() { 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 + find "$pkgdir"/usr/include \ + "$pkgdir"/usr/share \ + "$pkgdir"/usr/lib -type f | xargs chmod -v 0644 } diff --git a/community/mupdf/mupdf-1.3-system-libcurl.patch b/community/mupdf/mupdf-1.3-system-libcurl.patch new file mode 100644 index 000000000..b99083216 --- /dev/null +++ b/community/mupdf/mupdf-1.3-system-libcurl.patch @@ -0,0 +1,21 @@ +--- a/Makerules 2013-08-27 14:35:11.243520354 +0000 ++++ b/Makerules 2013-08-27 15:40:22.583629510 +0000 +@@ -67,6 +67,8 @@ + SYS_JBIG2DEC_LIBS = -ljbig2dec + SYS_JPEG_LIBS = -ljpeg + SYS_ZLIB_LIBS = -lz ++SYS_CURL_CFLAGS = $(shell pkg-config --cflags libcurl) -I/usr/include/curl ++SYS_CURL_LIBS = $(shell pkg-config --libs libcurl) + + endif + +--- a/Makethird 2013-08-27 15:41:18.043354692 +0000 ++++ b/Makethird 2013-08-27 15:42:41.332916192 +0000 +@@ -444,5 +444,6 @@ + CURL_CFLAGS := -I$(CURL_DIR)/include + CURL_LIBS := $(SYS_CURL_DEPS) + else +-NOCURL := yes ++CURL_CFLAGS := $(SYS_CURL_CFLAGS) ++CURL_LIBS := $(SYS_CURL_LIBS) $(SYS_CURL_DEPS) + endif |