diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-08-10 17:30:51 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-08-11 11:59:23 +0200 |
commit | 139d3d7413dff29c72bb85e684661dc69b62bea2 (patch) | |
tree | 4e1d92eed401bf8e180375aafea850a721c62a9d /testing | |
parent | 8052a58b93fa88cebb0ab40eb2c463ccd71d0ecc (diff) | |
download | aports-139d3d7413dff29c72bb85e684661dc69b62bea2.tar.bz2 aports-139d3d7413dff29c72bb85e684661dc69b62bea2.tar.xz |
testing/mupdf: upgrade to 1.9a
See #5921
Diffstat (limited to 'testing')
-rw-r--r-- | testing/mupdf/APKBUILD | 48 | ||||
-rw-r--r-- | testing/mupdf/shared-lib.patch | 37 |
2 files changed, 19 insertions, 66 deletions
diff --git a/testing/mupdf/APKBUILD b/testing/mupdf/APKBUILD index ebab4880c3..6f757833d2 100644 --- a/testing/mupdf/APKBUILD +++ b/testing/mupdf/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> # Maintainer: Michael Zhou <zhoumichaely@gmail.com> pkgname=mupdf -pkgver=1.8 +pkgver=1.9a pkgrel=0 pkgdesc="A lightweight PDF and XPS viewer" url="http://mupdf.com" @@ -9,50 +9,40 @@ arch="all" license="GPL3+" depends="" makedepends="freetype-dev jpeg-dev jbig2dec-dev libx11-dev libxext-dev - openjpeg-dev" + openjpeg-dev harfbuzz-dev" install="" subpackages="$pkgname-doc $pkgname-dev" -source="http://mupdf.com/downloads/mupdf-${pkgver}-source.tar.gz +source="http://mupdf.com/downloads/${pkgname}-${pkgver}-source.tar.gz mupdf-openjpeg-2.1.patch - shared-lib.patch " -_builddir="$srcdir/$pkgname-${pkgver}-source" +builddir="$srcdir/$pkgname-${pkgver}-source" prepare() { - cd "$_builddir" + default_prepare || return 1 - rm -rf thirdparty - sed '/^JBIG2DEC_CFLAGS :=/s|$| -I./include/mupdf|' -i Makethird - - local i= - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 ;; - esac + cd "$builddir" + for file in thirdparty/*; do + [ "${file##*/}" != "mujs" ] && rm -rf "$file" done + + sed '/^JBIG2DEC_CFLAGS :=/s|$| -I./include/mupdf|' \ + -i Makethird || return 1 } build() { - cd "$_builddir" + cd "$builddir" make prefix=/usr || return 1 } package() { - cd "$_builddir" + cd "$builddir" make prefix=/usr DESTDIR="$pkgdir" install || return 1 - - ln -s libmupdf.so.0 "$pkgdir"/usr/lib/libmupdf.so - - # Create symlink ln -s /usr/bin/$pkgname-x11 "$pkgdir"/usr/bin/$pkgname } -md5sums="3205256d78d8524d67dd2a47c7a345fa mupdf-1.8-source.tar.gz -4a8772b09af5152d9bf58e69834b74bf mupdf-openjpeg-2.1.patch -fab3502b8bcf3b6c4e5698f1cb33611d shared-lib.patch" -sha256sums="a2a3c64d8b24920f87cf4ea9339a25abf7388496440f13b37482d1403c33c206 mupdf-1.8-source.tar.gz -7b49af879df5eb2c79884a0983635fa335422edc9854bc4fbc44f653892827f2 mupdf-openjpeg-2.1.patch -43c6a6ea06757e63ae581be89338f38ec22beb504ca6e5ee3073ef1585aabe01 shared-lib.patch" -sha512sums="938fbed4afc0dd0aa621911cd70b9289c6a4f13d026f9390b11fc86d5b37845a76943c9fa42f218f67fe298295f15d6664a18be7bf73b5d952724122510f9deb mupdf-1.8-source.tar.gz -0a07dc0a0312ef0b6a20f6a89da7a2010008cf804a1c9b33667b17f263a69e46047a34dcb24e8015a98a61e28e1e302dc302c0fbb7303a61b00d9490146b7b83 mupdf-openjpeg-2.1.patch -66bc7474473987a30009e54fbd12b49cb6682f12c86f5d9b9e6f6efd4c162d04d55a65f9d8373517e958951608c9e49eade8b63b140441c04ad2e75eebb8f053 shared-lib.patch" +md5sums="658b90788a57d858dcb069cf326e11c3 mupdf-1.9a-source.tar.gz +4a8772b09af5152d9bf58e69834b74bf mupdf-openjpeg-2.1.patch" +sha256sums="8015c55f4e6dd892d3c50db4f395c1e46660a10b460e2ecd180a497f55bbc4cc mupdf-1.9a-source.tar.gz +7b49af879df5eb2c79884a0983635fa335422edc9854bc4fbc44f653892827f2 mupdf-openjpeg-2.1.patch" +sha512sums="9f804fd65c2dc6b7a3bd73961b1f1a8bf93d52903cccf6302acd6982dfa433125a3b8e77b808984921aee097877280fa21aafb87468cd0a8e4cfa900284a262b mupdf-1.9a-source.tar.gz +0a07dc0a0312ef0b6a20f6a89da7a2010008cf804a1c9b33667b17f263a69e46047a34dcb24e8015a98a61e28e1e302dc302c0fbb7303a61b00d9490146b7b83 mupdf-openjpeg-2.1.patch" diff --git a/testing/mupdf/shared-lib.patch b/testing/mupdf/shared-lib.patch deleted file mode 100644 index 6a3982f70a..0000000000 --- a/testing/mupdf/shared-lib.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- ./Makefile.orig -+++ ./Makefile -@@ -13,6 +13,7 @@ - # XCFLAGS or XLIBS instead. Make ignores any lines in the makefile that - # set a variable that was set on the command line. - CFLAGS += $(XCFLAGS) -Iinclude -I$(GEN) -+CFLAGS += -fPIC - LIBS += $(XLIBS) -lm - - include Makerules -@@ -55,6 +56,7 @@ - CXX_CMD = $(QUIET_CXX) $(CXX) $(CFLAGS) -o $@ -c $< - AR_CMD = $(QUIET_AR) $(AR) cr $@ $^ - LINK_CMD = $(QUIET_LINK) $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) -+LINK_SHARED_CMD = $(QUIET_LINK) $(CC) $(LDFLAGS) -shared -Wl,-soname,$(notdir $@) -o $@ $^ $(LIBS) - MKDIR_CMD = $(QUIET_MKDIR) mkdir -p $@ - RM_CMD = $(QUIET_RM) rm -f $@ - -@@ -128,7 +130,7 @@ - - # --- Library --- - --MUPDF_LIB := $(OUT)/libmupdf.a -+MUPDF_LIB := $(OUT)/libmupdf.so.0 - - $(MUPDF_LIB) : $(FITZ_OBJ) $(PDF_OBJ) $(XPS_OBJ) $(CBZ_OBJ) $(IMG_OBJ) $(TIFF_OBJ) - -@@ -143,6 +145,9 @@ - $(RM_CMD) - $(AR_CMD) - $(RANLIB_CMD) -+ -+$(OUT)/%.so.0 : $(OUT)/%.a -+ $(LINK_SHARED_CMD) - - $(OUT)/%: $(OUT)/%.o - $(LINK_CMD) |