diff options
author | Juan M. Lasca <juanmlasca@gmail.com> | 2023-04-28 02:34:56 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-04-29 18:11:41 +0700 |
commit | 4f3ca385ea4b29d33040842c000b1ffc1734329b (patch) | |
tree | e243c5d319412f3c3c5db6b89935efea1094d815 /office | |
parent | c00e52a112b4c5f7bcb9b24740fd997b04ffb513 (diff) |
office/openoffice.org: Add theme option.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r-- | office/openoffice.org/README | 5 | ||||
-rw-r--r-- | office/openoffice.org/openoffice.org.SlackBuild | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/office/openoffice.org/README b/office/openoffice.org/README index f4b064b83b3e..cb4c2a403a41 100644 --- a/office/openoffice.org/README +++ b/office/openoffice.org/README @@ -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: diff --git a/office/openoffice.org/openoffice.org.SlackBuild b/office/openoffice.org/openoffice.org.SlackBuild index 52519154d60b..eb0d7f915d73 100644 --- a/office/openoffice.org/openoffice.org.SlackBuild +++ b/office/openoffice.org/openoffice.org.SlackBuild @@ -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} |