From 4f3ca385ea4b29d33040842c000b1ffc1734329b Mon Sep 17 00:00:00 2001 From: "Juan M. Lasca" Date: Fri, 28 Apr 2023 02:34:56 +0100 Subject: office/openoffice.org: Add theme option. Signed-off-by: bedlam Signed-off-by: Willy Sudiarto Raharjo --- office/openoffice.org/README | 5 +++++ office/openoffice.org/openoffice.org.SlackBuild | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'office/openoffice.org') diff --git a/office/openoffice.org/README b/office/openoffice.org/README index f4b064b83b..cb4c2a403a 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 52519154d6..eb0d7f915d 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 < $PKG/usr/bin/${SRCNAM}${SRCSHORT} -- cgit v1.2.3-65-gdbad