From 5965306f516bc17e31be00ee6430bbed670aff21 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 15 Jun 2018 16:38:12 -0400 Subject: office/mupdf: Updated for version 1.13.0. Signed-off-by: B. Watson --- office/mupdf/ChangeLog.old | 73 +++++++++++++++++++++++++++++++++ office/mupdf/mupdf.SlackBuild | 95 ++++++------------------------------------- office/mupdf/mupdf.info | 6 +-- 3 files changed, 88 insertions(+), 86 deletions(-) create mode 100644 office/mupdf/ChangeLog.old (limited to 'office/mupdf') diff --git a/office/mupdf/ChangeLog.old b/office/mupdf/ChangeLog.old new file mode 100644 index 0000000000..939372ec46 --- /dev/null +++ b/office/mupdf/ChangeLog.old @@ -0,0 +1,73 @@ +# This stuff was getting long & annoying, so I moved it to a separate file. +# It's probably only of interest to me, and only because my memory is short. + +# 20160725 bkw: +# - version bump to 1.9a. +# - s/i486/i586/g (to match new 14.2 template). +# - script will no longer build old versions of mupdf, too much +# changed upstream. + +# 20150915 bkw BUILD=2: +# - add -DJBIG_NO_MEMENTO, needed for building with jbig2dec-0.12. + +# 20150511 bkw: +# - version bump to 1.7a. +# - remembered to reset BUILD to 1, yay. +# - no other changes (amazingly enough). + +# 20140827 bkw: fix quality control fails in previous version. +# 2 issues pointed out by Thomas Morper in an email: +# - The source is already found in upstream's archive/, and won't get +# moved, so update DOWNLOAD in the .info file to point there. +# - Get rid of redundant /usr/share/doc/mupdf dir. +# +# Also, I forgot to reset BUILD to 1 when VERSION changed, so this +# will be build "4" of 1.5 even thought it's really the 2nd one :( + +# 20140822 bkw: +# - Updated for mupdf-1.5. +# - Hosting the source on my server, so I know it won't get moved +# to an archive/ dir when a new release comes out. +# - Script also tested with 1.4: +# DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/mupdf-1.4-source.tar.gz" +# MD5SUM="0f6840a7020db0c833b0c090ca1864ec" +# - Add .desktop, .pc, icon +# - Got rid of CVE-2014-2013 patch (integrated by upstream in 1.4). +# - Remove man page patch (not needed for 1.4 and up). +# - Replace openjpeg dep with newly-submitted openjpeg2. +# - Small patch to allow building with openjpeg 2.1.0 (rather than 2.0.0). +# - For now, revert to static libmupdf. Upstream doesn't support +# shared libs, they hate it when distro packages create them, +# and rolling my own shared libs is more PITA than it's worth. +# - Upstream renamed the binary to mupdf-x11, add symlinks so scripts +# or .desktop files can still run it as mupdf, and "man mupdf" will +# still work. + +# 20140224 bkw: +# - backported security fix for CVE-2014-2013. I will be upgrading this +# build to mupdf-1.3, but it'll take more work than I currently have +# time for: +# + mupdf's internals have changed, will have to redo my patches +# + it depends on openjpeg 2.0 which SBo hasn't got yet. 2.0 uses an +# incompatible API, so an openjpeg 2.0 SlackBuild would require +# updates for everything that depends on it. +# + zathura-pdf-mupdf will need updating (mupdf's API has changed) +# + probably all the other zathura-* builds will need updating to +# be compatible with new zathura-pdf-mupdf +# The security fix is needed now, it's a tiny patch, and shouldn't have +# to wait on all that other stuff. + +# 20140318 bkw: fix permissions on headers and man pages. + +# 20130618 bkw: +# - Took over maintenance. +# - Updated for mupdf 1.2. +# - Build library shared, not static. +# - Build with system zlib, libjpeg, openjpeg, jbig2dec, libtiff, libpng, +# liblcms2 instead of bundled sources (which made the lib + exes *huge*). +# Also, the included libjpeg is too new (it broke zathura-pdf-mupdf). +# - Include mutool in package (instead of just its man page). +# - Add CHANGES CONTRIBUTORS doc/* to /usr/doc. +# - Use DESTDIR libdir mandir instead of patching makefile. +# - Updated README & slack-desc to mention XPS and CBZ. +# - Fix the man pages slightly. diff --git a/office/mupdf/mupdf.SlackBuild b/office/mupdf/mupdf.SlackBuild index de44c05d08..1deac8ab10 100644 --- a/office/mupdf/mupdf.SlackBuild +++ b/office/mupdf/mupdf.SlackBuild @@ -2,93 +2,17 @@ # Slackware build script for mupdf -# Originally written by Hubert Hesse (slackbuilds@hubertscorner.de). +# Originally written by Hubert Hesse (email removed). # Heavily modified by B. Watson (yalhcru@gmail.com). +# 20180615 bkw: update for 1.13.0, move old change comments to ChangeLog.old # 20180101 bkw: update for 1.12.0. - -# 20170711 bkw: -# - version bump to 1.11. - -# 20170621 bkw: -# - fix build with -current's newer openjpeg, BUILD=2. - -# 20170122 bkw: -# - version bump to 1.10a. - -# 20160725 bkw: -# - version bump to 1.9a. -# - s/i486/i586/g (to match new 14.2 template). -# - script will no longer build old versions of mupdf, too much -# changed upstream. - -# 20150915 bkw BUILD=2: -# - add -DJBIG_NO_MEMENTO, needed for building with jbig2dec-0.12. - -# 20150511 bkw: -# - version bump to 1.7a. -# - remembered to reset BUILD to 1, yay. -# - no other changes (amazingly enough). - -# 20140827 bkw: fix quality control fails in previous version. -# 2 issues pointed out by Thomas Morper in an email: -# - The source is already found in upstream's archive/, and won't get -# moved, so update DOWNLOAD in the .info file to point there. -# - Get rid of redundant /usr/share/doc/mupdf dir. -# -# Also, I forgot to reset BUILD to 1 when VERSION changed, so this -# will be build "4" of 1.5 even thought it's really the 2nd one :( - -# 20140822 bkw: -# - Updated for mupdf-1.5. -# - Hosting the source on my server, so I know it won't get moved -# to an archive/ dir when a new release comes out. -# - Script also tested with 1.4: -# DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/mupdf-1.4-source.tar.gz" -# MD5SUM="0f6840a7020db0c833b0c090ca1864ec" -# - Add .desktop, .pc, icon -# - Got rid of CVE-2014-2013 patch (integrated by upstream in 1.4). -# - Remove man page patch (not needed for 1.4 and up). -# - Replace openjpeg dep with newly-submitted openjpeg2. -# - Small patch to allow building with openjpeg 2.1.0 (rather than 2.0.0). -# - For now, revert to static libmupdf. Upstream doesn't support -# shared libs, they hate it when distro packages create them, -# and rolling my own shared libs is more PITA than it's worth. -# - Upstream renamed the binary to mupdf-x11, add symlinks so scripts -# or .desktop files can still run it as mupdf, and "man mupdf" will -# still work. - -# 20140224 bkw: -# - backported security fix for CVE-2014-2013. I will be upgrading this -# build to mupdf-1.3, but it'll take more work than I currently have -# time for: -# + mupdf's internals have changed, will have to redo my patches -# + it depends on openjpeg 2.0 which SBo hasn't got yet. 2.0 uses an -# incompatible API, so an openjpeg 2.0 SlackBuild would require -# updates for everything that depends on it. -# + zathura-pdf-mupdf will need updating (mupdf's API has changed) -# + probably all the other zathura-* builds will need updating to -# be compatible with new zathura-pdf-mupdf -# The security fix is needed now, it's a tiny patch, and shouldn't have -# to wait on all that other stuff. - -# 20140318 bkw: fix permissions on headers and man pages. - -# 20130618 bkw: -# - Took over maintenance. -# - Updated for mupdf 1.2. -# - Build library shared, not static. -# - Build with system zlib, libjpeg, openjpeg, jbig2dec, libtiff, libpng, -# liblcms2 instead of bundled sources (which made the lib + exes *huge*). -# Also, the included libjpeg is too new (it broke zathura-pdf-mupdf). -# - Include mutool in package (instead of just its man page). -# - Add CHANGES CONTRIBUTORS doc/* to /usr/doc. -# - Use DESTDIR libdir mandir instead of patching makefile. -# - Updated README & slack-desc to mention XPS and CBZ. -# - Fix the man pages slightly. +# 20170711 bkw: update for 1.11. +# 20170621 bkw: fix build with -current's newer openjpeg, BUILD=2. +# 20170122 bkw: update for 1.10a. PRGNAM=mupdf -VERSION=${VERSION:-1.12.0} +VERSION=${VERSION:-1.13.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -176,7 +100,12 @@ make verbose=yes \ mandir=/usr/man \ docdir=/usr/doc/$PRGNAM-$VERSION \ DESTDIR=$PKG \ - install + all extra-apps install + +# 1.12.0 used to install this stuff with 'make install', 1.13.0 doesn't: +for i in mjsgen muraster mupdf-x11-curl; do + [ -e build/release/$i ] && install -s -m0755 build/release/$i $PKG/usr/bin +done strip $PKG/usr/bin/* diff --git a/office/mupdf/mupdf.info b/office/mupdf/mupdf.info index 23c7bfe6b6..1baf451ab3 100644 --- a/office/mupdf/mupdf.info +++ b/office/mupdf/mupdf.info @@ -1,8 +1,8 @@ PRGNAM="mupdf" -VERSION="1.12.0" +VERSION="1.13.0" HOMEPAGE="https://www.mupdf.com/" -DOWNLOAD="https://www.mupdf.com/downloads/archive/mupdf-1.12.0-source.tar.gz" -MD5SUM="d30738f0487d2e40c921071ba74c479b" +DOWNLOAD="https://www.mupdf.com/downloads/archive/mupdf-1.13.0-source.tar.gz" +MD5SUM="447bc5c3305efe9645e12fce759e0198" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="jbig2dec" -- cgit v1.2.3