summaryrefslogtreecommitdiffstats
path: root/office/openoffice.org/openoffice.org.SlackBuild
diff options
context:
space:
mode:
author Juan M. Lasca <juanmlasca@gmail.com>2023-03-03 07:03:19 +0000
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-03-04 08:06:29 +0700
commit0fc0776ec4da421a0011c63921e5adc041bbb019 (patch)
treee759f0048557d5a7f1d5fdc1bb6c5d6485f7f19e /office/openoffice.org/openoffice.org.SlackBuild
parentb1f0d17c83811ea99afb5c235f04d49a2f5aea4a (diff)
downloadslackbuilds-0fc0776ec4da421a0011c63921e5adc041bbb019.tar.gz
slackbuilds-0fc0776ec4da421a0011c63921e5adc041bbb019.tar.xz
office/openoffice.org: Updated for version 4.1.14. New maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/openoffice.org/openoffice.org.SlackBuild')
-rw-r--r--office/openoffice.org/openoffice.org.SlackBuild31
1 files changed, 20 insertions, 11 deletions
diff --git a/office/openoffice.org/openoffice.org.SlackBuild b/office/openoffice.org/openoffice.org.SlackBuild
index e40f15dd5e..52519154d6 100644
--- a/office/openoffice.org/openoffice.org.SlackBuild
+++ b/office/openoffice.org/openoffice.org.SlackBuild
@@ -1,14 +1,14 @@
#!/bin/bash
# Slackware build script for openoffice.org
-# Copyright 2023 Dimitris Zlatanidis Orestiada, Greece
+# Originally written by Niki Kovacs <info@microlinux.fr)
+# Rewritten for slackbuilds.org by Ryan P.C. McQuen
# Copyright 2018-2019 Donald Cooley South Haven, Indiana USA
# With help from Ekin Akoglu to fix missing menu icons and script cleanup,
# and a diff from Dominik Drobek to remove unnecessary RPM cruft.
# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
-# Originally written by Niki Kovacs <info@microlinux.fr)
-#
-# Rewritten for slackbuilds.org by Ryan P.C. McQuen
+# Copyright 2023 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2023 Juan M. Lasca <juanmlasca@gmail.com>
#
# All rights reserved.
#
@@ -33,8 +33,8 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=openoffice.org
SRCNAM=openoffice
-VERSION=${VERSION:-4.1.13}
-BUILD_ID=${BUILD_ID:-9810}
+VERSION=${VERSION:-4.1.14}
+BUILD_ID=${BUILD_ID:-9811}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -64,9 +64,6 @@ else
PKGARCH="i586"
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-${VERSION}_${PKG_LANG}-$PKGARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -128,12 +125,24 @@ cd $PKG/usr/bin/
done
cd -
+## Correct scripts so that they don't conflict with other soffice derivatives
+cd $PKG/opt/${SRCNAM}${SRCSHORT}/program
+ for FILE in \
+ sbase scalc sdraw simpress smath spadmin swriter unopkg; do
+ sed -i 's/soffice/open-soffice/' $FILE
+ done
+ 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
+
## fix desktop files, so they can launch
-cat <<EOT > $PKG/usr/bin/${SRCNAM}4
+cat <<EOT > $PKG/usr/bin/${SRCNAM}${SRCSHORT}
#!/bin/sh
/opt/${SRCNAM}${SRCSHORT}/program/soffice "\$@"
EOT
-chmod 755 $PKG/usr/bin/${SRCNAM}4
+chmod 755 $PKG/usr/bin/${SRCNAM}${SRCSHORT}
## desktop files!
for APP in base calc draw impress math writer; do