diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2011-12-25 23:39:27 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-12-25 23:39:27 -0600 |
commit | 723a93b8e91b7e1629552e1bc77f11f10fa57618 (patch) | |
tree | 4c031e0c219815236245a03d8dd10345dbfc7ac1 /office/mupdf/mupdf.SlackBuild | |
parent | d04ec1b79abdc115869eb79b999c1c94e627c4ea (diff) |
office/mupdf: Fixed packaging on x86_64
Thanks to ponce for the sed line :)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/mupdf/mupdf.SlackBuild')
-rw-r--r-- | office/mupdf/mupdf.SlackBuild | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/office/mupdf/mupdf.SlackBuild b/office/mupdf/mupdf.SlackBuild index 2e372e2de538..f69a5b80954b 100644 --- a/office/mupdf/mupdf.SlackBuild +++ b/office/mupdf/mupdf.SlackBuild @@ -6,7 +6,7 @@ PRGNAM=mupdf VERSION=${VERSION:-0.8.165} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -50,12 +50,12 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" \ -verbose=no \ - make build=release prefix=$PKG/usr +sed -i "s,(prefix)/lib,(prefix)/lib$LIBDIRSUFFIX," Makefile + +CFLAGS="$SLKCFLAGS" make build=release prefix=/usr make build=release prefix=$PKG/usr install -#don't overwrite poppler's pdfinfo +# don't overwrite poppler's pdfinfo mv $PKG/usr/bin/pdfinfo $PKG/usr/bin/pdfinfo-mupdf find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ @@ -63,15 +63,13 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr mkdir -p $PKG/usr/man mv $PKG/usr/share/man/man1 $PKG/usr/man/man1 -rm $PKG/usr/share/man -r +rm -rf $PKG/usr/share find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - README COPYING \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README COPYING $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |