diff options
Diffstat (limited to 'office/fbpdf/fbpdf.SlackBuild')
-rw-r--r-- | office/fbpdf/fbpdf.SlackBuild | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/office/fbpdf/fbpdf.SlackBuild b/office/fbpdf/fbpdf.SlackBuild index 33b522be1a..83a617ada2 100644 --- a/office/fbpdf/fbpdf.SlackBuild +++ b/office/fbpdf/fbpdf.SlackBuild @@ -9,13 +9,13 @@ # Source tarball made from: git clone git://repo.or.cz/fbpdf.git PRGNAM=fbpdf -VERSION=${VERSION:-20140822} -BUILD=${BUILD:-2} +VERSION=${VERSION:-20160804} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -26,8 +26,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -63,9 +63,8 @@ find -L . \ patch -p1 < $CWD/navigation.diff # mupdf API keeps changing - sed -i \ - -e 's,-lmupdf -lmujs,`pkg-config --libs mupdf`,' \ + -e 's,-lmupdf -lmujs,`pkg-config --libs mupdf` -lharfbuzz,' \ -e 's,-lopenjpeg,-lopenjp2,' \ Makefile @@ -76,12 +75,8 @@ make ${PRGNAM}2 fbdjvu install -s -m0755 ${PRGNAM}2 $PKG/usr/bin install -s -m0755 fbdjvu $PKG/usr/bin -# autodetect mupdf, apply patch if needed. +# autodetect mupdf, build fbpdf if found (seems OK with mupdf-1.9a) if pkg-config --exists mupdf; then - MUPDFVER="$( pkg-config --modversion mupdf 2>/dev/null | \ - sed 's,^[0-9]*\.\([0-9][0-9]*\).*,\1,' )" - [ "$MUPDFVER" != "" -a "$MUPDFVER" -gt "6" ] && - patch -p1 < $CWD/mupdf-1.7a.diff make clean make $PRGNAM install -s -m0755 $PRGNAM $PKG/usr/bin |