diff options
author | B. Watson <yalhcru@gmail.com> | 2014-08-27 10:40:50 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-08-30 14:22:23 +0700 |
commit | a88dace363a3b1a98dae3cdbf61d7f726a002624 (patch) | |
tree | 74a4254185a37144f263e9ee78cdafeb598acd69 /office/mupdf/mupdf.SlackBuild | |
parent | 4181f14b2e41d597a0bef7591be47904bf440c7c (diff) | |
download | slackbuilds-a88dace363a3b1a98dae3cdbf61d7f726a002624.tar.gz |
office/mupdf: Get rid of dupe docs, use upstream URL.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'office/mupdf/mupdf.SlackBuild')
-rw-r--r-- | office/mupdf/mupdf.SlackBuild | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/office/mupdf/mupdf.SlackBuild b/office/mupdf/mupdf.SlackBuild index 8253dde59c..680e8d9aa0 100644 --- a/office/mupdf/mupdf.SlackBuild +++ b/office/mupdf/mupdf.SlackBuild @@ -5,6 +5,15 @@ # Originally written by Hubert Hesse (slackbuilds@hubertscorner.de). # Heavily modified by B. Watson (yalhcru@gmail.com). +# 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 @@ -55,7 +64,7 @@ PRGNAM=mupdf VERSION=${VERSION:-1.5} -BUILD=${BUILD:-1} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -111,10 +120,10 @@ rm -rf thirdparty/* chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; # opj_stream_set_user_data() now takes 3 args in openjpeg 2.1. # Patch applies to both 1.4 and 1.5. @@ -136,6 +145,7 @@ make \ prefix=/usr \ libdir=/usr/lib$LIBDIRSUFFIX \ mandir=/usr/man \ + docdir=/usr/doc/$PRGNAM-$VERSION \ DESTDIR=$PKG \ install @@ -188,8 +198,8 @@ sed -e "s,@LIB@,lib$LIBDIRSUFFIX,g" \ WITH=without [ "$MUJS" = "yes" ] && WITH=with -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README COPYING CHANGES CONTRIBUTORS docs/*.* $PKG/usr/doc/$PRGNAM-$VERSION +# 'make install' already installed most of the docs. +cp -a CONTRIBUTORS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |