diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2016-03-11 08:09:37 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-03-12 06:42:40 +0700 |
commit | 3b52e6a411992162a3e2ba9b852d19c5ffaae549 (patch) | |
tree | 9af7cd5c5992852e6dd8a72a12e0538179449561 /office/fbreader/fbreader.SlackBuild | |
parent | 6b365938accf0683d820578df0455dc6350446f6 (diff) | |
download | slackbuilds-3b52e6a411992162a3e2ba9b852d19c5ffaae549.tar.gz |
office/fbreader: Updated for version 0.99.4.
Changed dependency from liblinebreak to libunibreak
Build script mods and patch shamelessly stolen from Archlinux
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'office/fbreader/fbreader.SlackBuild')
-rw-r--r-- | office/fbreader/fbreader.SlackBuild | 39 |
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 |