summaryrefslogtreecommitdiff
path: root/office/LibreOffice/LibreOffice.SlackBuild
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@iinet.net.au>2016-05-02 23:16:03 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-05-05 23:55:39 +0700
commit4158e60d59c26c5bb4b91b00c0f7d94f0cef7de3 (patch)
tree7e2dd71fc872bd3156922dc6d5bc21bf128eac2a /office/LibreOffice/LibreOffice.SlackBuild
parente09eabddd066abcc090eb487d4bb04bfe1db1a39 (diff)
downloadslackbuilds-4158e60d59c26c5bb4b91b00c0f7d94f0cef7de3.tar.gz
office/LibreOffice: Set gtk2 as preferred toolkit.
Signed-off-by: Christoph Willing <chris.willing@iinet.net.au>
Diffstat (limited to 'office/LibreOffice/LibreOffice.SlackBuild')
-rw-r--r--office/LibreOffice/LibreOffice.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/office/LibreOffice/LibreOffice.SlackBuild b/office/LibreOffice/LibreOffice.SlackBuild
index 78e05c8d78..b5ba37a68c 100644
--- a/office/LibreOffice/LibreOffice.SlackBuild
+++ b/office/LibreOffice/LibreOffice.SlackBuild
@@ -28,7 +28,7 @@ PRGNAM=LibreOffice
SRCNAM=libreoffice
VERSION=${VERSION:-5.1.2.2}
SHORT_VERSION=${VERSION%.*.*}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PACKAGER=${PACKAGER:-"AnonymousCoward"}
@@ -162,6 +162,11 @@ make distro-pack-install 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
+# Prefer GTK2 toolkit
+cd $PKG/usr/lib$LIBDIRSUFFIX/$SRCNAM/program
+sed -i -e '/^#\ restore/i# Prefer GTK2\nexport SAL_USE_VCLPLUGIN=${SAL_USE_VCLPLUGIN:-gtk}\n' soffice
+cd -
+
cd $PKG/usr/lib$LIBDIRSUFFIX
mv $SRCNAM $SRCNAM-$VERSION
ln -s $SRCNAM-$VERSION $SRCNAM