mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
office/LibreOffice: Set gtk2 as preferred toolkit.
Signed-off-by: Christoph Willing <chris.willing@iinet.net.au>
This commit is contained in:
parent
e09eabddd0
commit
4158e60d59
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -18,3 +18,7 @@ Build time environment variables that may set to vary features are as follows.
|
|||
is always added to whatever LOLANGS is set. Thus building with, for example,
|
||||
LOLOANGS="de" sh LibreOffice
|
||||
would build LibreOffice with support for german and US english languages.
|
||||
|
||||
For performance reasons, this Slackbuild sets GTK2 to be used at runtime.
|
||||
Alternatives (gen, gtk3, kde4) may still be used by setting SAL_USE_VCLPLUGIN
|
||||
in the user environment.
|
||||
|
|
Loading…
Reference in a new issue