aboutsummaryrefslogtreecommitdiff
path: root/office/fbpdf/fbpdf.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-08-04 15:46:20 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-13 07:22:55 +0700
commitbb6381c8fe1b996e58e930f234633cf4c8e2cf98 (patch)
treeb5a9094642d6246f3f85db79eac73b755f417223 /office/fbpdf/fbpdf.SlackBuild
parent85cde4df65d09364b5227acd6fbb557df398ff31 (diff)
office/fbpdf: Updated for version 20160804.
Diffstat (limited to 'office/fbpdf/fbpdf.SlackBuild')
-rw-r--r--office/fbpdf/fbpdf.SlackBuild19
1 files changed, 7 insertions, 12 deletions
diff --git a/office/fbpdf/fbpdf.SlackBuild b/office/fbpdf/fbpdf.SlackBuild
index 33b522be1a67a..83a617ada2d56 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