office/openoffice.org: Add theme option.
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
c00e52a112
commit
4f3ca385ea
|
@ -3,6 +3,11 @@ compatible with all other major office software.
|
|||
|
||||
This script builds a Slackware package from the official binary (RPM's)
|
||||
distributed by openoffice.org.
|
||||
The default GTK theme is replaced with 'Adwaita', but if instead you'd
|
||||
like to use the default 'Raleigh', set the option DEFAULT_TO_RALEIGH
|
||||
to 'YES', i.e.:
|
||||
|
||||
DEFAULT_TO_RALEIGH='YES' ./openoffice.org.SlackBuild
|
||||
|
||||
Apache recommends having either jre or jdk installed, but it is not
|
||||
required. See more details here:
|
||||
|
|
|
@ -35,7 +35,7 @@ PRGNAM=openoffice.org
|
|||
SRCNAM=openoffice
|
||||
VERSION=${VERSION:-4.1.14}
|
||||
BUILD_ID=${BUILD_ID:-9811}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
SRCSHORT=$(echo $VERSION | cut -f1 -d.)
|
||||
|
@ -134,8 +134,12 @@ cd $PKG/opt/${SRCNAM}${SRCSHORT}/program
|
|||
ln -s soffice.bin open-soffice.bin
|
||||
cd -
|
||||
|
||||
## Replace 'Raleigh' with 'Adwaita' as the default theme
|
||||
patch -p0 $PKG/opt/${SRCNAM}${SRCSHORT}/program/soffice < $CWD/patches/01-gtk2_theme.patch
|
||||
## By default, replace 'Raleigh' with 'Adwaita' as the default theme,
|
||||
## unless the option DEFAULT_TO_RALEIGH is set to 'YES'.
|
||||
## Changed based on comments by Petar Petrov
|
||||
if [ "$DEFAULT_TO_RALEIGH" = "YES" ]; then
|
||||
patch -p0 $PKG/opt/${SRCNAM}${SRCSHORT}/program/soffice < $CWD/patches/01-gtk2_theme.patch;
|
||||
fi
|
||||
|
||||
## fix desktop files, so they can launch
|
||||
cat <<EOT > $PKG/usr/bin/${SRCNAM}${SRCSHORT}
|
||||
|
|
Loading…
Reference in New Issue