|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# Build script for Slackware
|
|
|
|
|
# Copyright (C) 2012,2013,2016 Damien Goutte-Gattat
|
|
|
|
|
# Copyright (C) 2012,2013,2016,2017 Damien Goutte-Gattat
|
|
|
|
|
#
|
|
|
|
|
# Redistribution and use of this script, with or without modifications,
|
|
|
|
|
# is permitted provided that the following conditions are met:
|
|
|
|
@ -26,9 +26,9 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos
|
|
|
|
|
NAMESRC=${NAMESRC:-mupdf}
|
|
|
|
|
VERSION=${VERSION:-1.9a}
|
|
|
|
|
VERSION=${VERSION:-1.11}
|
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-source.tar.gz}
|
|
|
|
|
WGET=${WGET:-http://mupdf.com/downloads/$ARCHIVE}
|
|
|
|
|
WGET=${WGET:-https://mupdf.com/downloads/$ARCHIVE}
|
|
|
|
|
|
|
|
|
|
# Build infos
|
|
|
|
|
NAMEPKG=${NAMEPKG:-mupdf}
|
|
|
|
@ -75,7 +75,7 @@ if [ ! -r $ARCHIVE ]; then
|
|
|
|
|
wget -c -O $ARCHIVE.part "$WGET"
|
|
|
|
|
mv $ARCHIVE.part $ARCHIVE
|
|
|
|
|
fi
|
|
|
|
|
sha1sum -c $ARCHIVE.sha1
|
|
|
|
|
sha256sum -c $ARCHIVE.sha256
|
|
|
|
|
NAME=$NAMEPKG-$VERSION-source
|
|
|
|
|
|
|
|
|
|
# Compile
|
|
|
|
@ -90,10 +90,6 @@ make install prefix=$PKG/usr \
|
|
|
|
|
mandir=$PKG/usr/man \
|
|
|
|
|
docdir=$PKG/usr/doc/$NAME
|
|
|
|
|
|
|
|
|
|
# Strip binaries
|
|
|
|
|
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
|
|
|
|
|
xargs strip --strip-unneeded 2> /dev/null
|
|
|
|
|
|
|
|
|
|
# Compress man pages
|
|
|
|
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
|
|
|
|
|
|
|
|
|