From a9c93999ffe58377ca7bde7442adea9e3c31f5ca Mon Sep 17 00:00:00 2001 From: Larry Hajali Date: Mon, 14 Sep 2015 06:55:19 +0700 Subject: office/texmaker: Fix for Qt 5.5.x and newer. Signed-off-by: Willy Sudiarto Raharjo --- office/texmaker/qt-5.5.x.patch | 11 +++++++++++ office/texmaker/texmaker.SlackBuild | 15 +++++++++------ 2 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 office/texmaker/qt-5.5.x.patch (limited to 'office') diff --git a/office/texmaker/qt-5.5.x.patch b/office/texmaker/qt-5.5.x.patch new file mode 100644 index 0000000000..b53fd72ccd --- /dev/null +++ b/office/texmaker/qt-5.5.x.patch @@ -0,0 +1,11 @@ +diff -Naur texmaker-4.4.1.orig/singleapp/qtlocalpeer.cpp texmaker-4.4.1/singleapp/qtlocalpeer.cpp +--- texmaker-4.4.1.orig/singleapp/qtlocalpeer.cpp 2013-01-07 11:55:45.000000000 +0000 ++++ texmaker-4.4.1/singleapp/qtlocalpeer.cpp 2015-09-13 01:53:52.722192775 +0000 +@@ -42,6 +42,7 @@ + #include "qtlocalpeer.h" + #include + #include ++#include + + #if defined(Q_OS_WIN) + #include diff --git a/office/texmaker/texmaker.SlackBuild b/office/texmaker/texmaker.SlackBuild index b1a6509b1f..c305ba5d1e 100644 --- a/office/texmaker/texmaker.SlackBuild +++ b/office/texmaker/texmaker.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=texmaker VERSION=${VERSION:-4.4.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -64,10 +64,13 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +# Fix for qt >= 5.5. +patch -p1 < $CWD/qt-5.5.x.patch # Check for Qt5 or else drop back to Qt4. if [ "${QT5GUI:-no}" == "yes" ]; then @@ -81,7 +84,7 @@ fi make make install INSTALL_ROOT=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +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 install -D -m 0644 utilities/$PRGNAM.1 $PKG/usr/man/man1/$PRGNAM.1 -- cgit v1.2.3