summaryrefslogtreecommitdiff
path: root/office/fbreader/fbreader.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/fbreader/fbreader.SlackBuild')
-rw-r--r--office/fbreader/fbreader.SlackBuild39
1 files changed, 10 insertions, 29 deletions
diff --git a/office/fbreader/fbreader.SlackBuild b/office/fbreader/fbreader.SlackBuild
index 9523773648..09fe528408 100644
--- a/office/fbreader/fbreader.SlackBuild
+++ b/office/fbreader/fbreader.SlackBuild
@@ -6,8 +6,8 @@
# revision date: 2011/03/09
PRGNAM=fbreader
-VERSION=${VERSION:-0.12.10}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.99.4}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -61,33 +61,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# 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
-UI_TYPE = $UI
-TARGET_STATUS = release
-EOF
-
-# Add SLKCFLAGS
-sed -i "s|CFLAGS =|CFLAGS = $SLKCFLAGS|" makefiles/arch/desktop.mk
-
-# 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
-
-# Fix all Qt4 related flags
-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
-
-# Patch source for gcc45x hickup (from the friendly ARCH people)
-patch -p1 < $CWD/fbreader_gcc45x.patch
-
-# Use "-j1" to avoid some warnings
-make -j1 LIBDIR=/usr/lib${LIBDIRSUFFIX}
-make install LIBDIR=/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG
+patch -p1 < $CWD/fbreader-0.99.4.patch
+
+export TARGET_ARCH=desktop
+export UI_TYPE=$UI
+export TARGET_STATUS=release
+
+make LIBDIR=/usr/lib${LIBDIRSUFFIX} ZLSHARED=no MOC=/usr/bin/moc
+make install LIBDIR=/usr/lib${LIBDIRSUFFIX} ZLSHARED=no DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true