summaryrefslogtreecommitdiffstats
path: root/office
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
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')
-rw-r--r--office/openoffice.org/openoffice.org.SlackBuild31
-rw-r--r--office/openoffice.org/openoffice.org.info14
-rw-r--r--office/openoffice.org/patches/01-gtk2_theme.patch5
3 files changed, 32 insertions, 18 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
diff --git a/office/openoffice.org/openoffice.org.info b/office/openoffice.org/openoffice.org.info
index 8649239ae8..28699a94a0 100644
--- a/office/openoffice.org/openoffice.org.info
+++ b/office/openoffice.org/openoffice.org.info
@@ -1,10 +1,10 @@
PRGNAM="openoffice.org"
-VERSION="4.1.13"
+VERSION="4.1.14"
HOMEPAGE="https://openoffice.org"
-DOWNLOAD="https://sourceforge.net/projects/openofficeorg.mirror/files/4.1.13/binaries/en-US/Apache_OpenOffice_4.1.13_Linux_x86_install-rpm_en-US.tar.gz"
-MD5SUM="06ebc1c5006ce3f7b0b18e14bf988135"
-DOWNLOAD_x86_64="https://sourceforge.net/projects/openofficeorg.mirror/files/4.1.13/binaries/en-US/Apache_OpenOffice_4.1.13_Linux_x86-64_install-rpm_en-US.tar.gz"
-MD5SUM_x86_64="af7f6219a86d71728bb51e6ab8e823b1"
+DOWNLOAD="https://sourceforge.net/projects/openofficeorg.mirror/files/4.1.14/binaries/en-US/Apache_OpenOffice_4.1.14_Linux_x86_install-rpm_en-US.tar.gz"
+MD5SUM="7a762c1bbf83c43be00a11d4d1ab6914"
+DOWNLOAD_x86_64="https://sourceforge.net/projects/openofficeorg.mirror/files/4.1.14/binaries/en-US/Apache_OpenOffice_4.1.14_Linux_x86-64_install-rpm_en-US.tar.gz"
+MD5SUM_x86_64="dfafbcb65f35aa8427a12c447d9a438f"
REQUIRES=""
-MAINTAINER="Dimitris Zlatanidis"
-EMAIL="d.zlatanidis@gmail.com"
+MAINTAINER="Juan M. Lasca"
+EMAIL="juanmlasca@gmail.com"
diff --git a/office/openoffice.org/patches/01-gtk2_theme.patch b/office/openoffice.org/patches/01-gtk2_theme.patch
new file mode 100644
index 0000000000..9d7b9a2f82
--- /dev/null
+++ b/office/openoffice.org/patches/01-gtk2_theme.patch
@@ -0,0 +1,5 @@
+38a39,42
+> # Any theme would be nicer than the default Raleigh theme.
+> GTK2_RC_FILES=${GTK2_RC_FILES:-/usr/share/themes/Adwaita/gtk-2.0/gtkrc}
+> export GTK2_RC_FILES
+>