summaryrefslogtreecommitdiff
path: root/office/fbreader/fbreader.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2020-12-10 09:44:11 +0100
committerRobby Workman <rworkman@slackbuilds.org>2021-04-17 23:22:26 -0500
commit45cfe8691d2a28a4229b27b4e734366d0f7c5a14 (patch)
tree8aebb5808074f085339f4b92281d53c54658ac1c /office/fbreader/fbreader.SlackBuild
parent8fd9801bca6d162bdb257e3b7a8ac04d899a277b (diff)
downloadslackbuilds-45cfe8691d2a28a4229b27b4e734366d0f7c5a14.tar.gz
office/fbreader: Disabled narrowing warnings, move to qt5.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'office/fbreader/fbreader.SlackBuild')
-rw-r--r--office/fbreader/fbreader.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/office/fbreader/fbreader.SlackBuild b/office/fbreader/fbreader.SlackBuild
index d5c54adeac..bef54c8b35 100644
--- a/office/fbreader/fbreader.SlackBuild
+++ b/office/fbreader/fbreader.SlackBuild
@@ -56,14 +56,18 @@ 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 {} \;
+# Needed for gcc >= 6.x
+sed -i "s|-Wall|-Wall -Wno-narrowing|" makefiles/arch/desktop.mk
patch -p1 < $CWD/fbreader-0.99.4.patch
+# Port to qt5 - patch from gentoo
+patch -p1 < $CWD/fbreader-qt5.patch
export TARGET_ARCH=desktop
-export UI_TYPE=qt4
+export UI_TYPE=qt4 # this hasn't changed
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
+make LIBDIR=/usr/lib${LIBDIRSUFFIX}
+make install LIBDIR=/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true