office/fbreader: Updated for version 0.12.2

This commit is contained in:
Niels Horn 2010-05-13 00:39:08 +02:00 committed by David Somero
parent 1f653e4318
commit 14330a180d
4 changed files with 24 additions and 28 deletions

View file

@ -1,19 +1,6 @@
FBReader is e-book reader for Linux PDAs and desktop.
- Supported formats are: fb2 e-book format (style attributes are not supported
yet); HTML format (tables are not supported); CHM format (tables are not
supported); plucker format (embedded images are supported, tables are not
supported); Palmdoc (aportis doc); zTxt (Weasel format); TCR (psion text)
format; RTF format (stylesheets and tables are not supported); OEB format
(css and tables are not supported); OpenReader format (css and tables are not
supported); Non-DRM'ed mobipocket format (tables are not supported); Plain
text format.
- Direct reading from tar, zip, gzip and bzip2 archives.
- Automatically generated contents table.
- Embedded images support.
- Footnotes/hyperlinks support.
Requires liblinebreak which can be found here at SBo.
This requires liblinebreak.
This builds the Qt-based user interface by default; if you prefer to build
the GTK interface instead, run the script as follows:

View file

@ -1,3 +1,4 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

View file

@ -1,10 +1,12 @@
#!/bin/sh
# Slackware build script for fbreader
# Written by Audrius Kažukauskas <audrius@neutrino.lt>
# Originally written by Audrius Kazukauskas <audrius@neutrino.lt>
# Maintained as of version 0.12.1 by Niels Horn <niels.horn@gmail.com>
# revision date: 2010/02/11
PRGNAM=fbreader
VERSION=0.10.7
VERSION=0.12.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -17,13 +19,17 @@ OUTPUT=${OUTPUT:-/tmp}
# If you want to build the gtk interface instead, then change this
# value to 'gtk' or run the script like this:
# UI=gtk ./fbreader.SlackBuild
# (or UI=qt4 for those who have Qt4 from -current)
UI=${UI:-qt}
UI=${UI:-qt4}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e # Exit on most errors
@ -37,7 +43,7 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
# We're building for desktop against Qt3
# We're building for desktop against Qt4
# If you want to build against GTK+2, just change UI_TYPE to gtk
cat > makefiles/target.mk << EOF
TARGET_ARCH = desktop
@ -48,7 +54,7 @@ EOF
# Add SLKCFLAGS
sed -i "s|CFLAGS =|CFLAGS = $SLKCFLAGS|" makefiles/arch/desktop.mk
# Fix all Qt3 related flags
# Fix all Qt3 related flags (just in case)
sed -i 's|moc-qt3|moc|' makefiles/arch/desktop.mk
sed -i 's|-I /usr/include/qt3|$(shell pkg-config --cflags qt-mt)|' makefiles/arch/desktop.mk
sed -i 's|-lqt-mt|$(shell pkg-config --libs qt-mt)|' makefiles/arch/desktop.mk
@ -58,8 +64,8 @@ sed -i 's|moc-qt4|moc|' makefiles/arch/desktop.mk
sed -i 's|-I /usr/include/qt4|$(shell pkg-config --cflags QtGui)|' makefiles/arch/desktop.mk
sed -i 's|-lQtGui|$(shell pkg-config --libs QtGui)|' makefiles/arch/desktop.mk
make
make install DESTDIR=$PKG
make LIBDIR=/usr/lib${LIBDIRSUFFIX}
make install LIBDIR=/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
@ -80,4 +86,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -1,8 +1,10 @@
PRGNAM="fbreader"
VERSION="0.10.7"
VERSION="0.12.2"
HOMEPAGE="http://fbreader.org/"
DOWNLOAD="http://fbreader.org/fbreader-sources-0.10.7.tgz"
MD5SUM="145f4d2ba24c54288bad2d66ddd2baf2"
MAINTAINER="Audrius Kazukauskas"
EMAIL="audrius@neutrino.lt"
DOWNLOAD="http://fbreader.org/fbreader-sources-0.12.2.tgz"
MD5SUM="f67883a814e3bf74378d97b997867144"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Niels Horn"
EMAIL="niels.horn@gmail.com"
APPROVED="dsomero"