office/openoffice.org: Updated for version 4.1.14. New maintainer.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Juan M. Lasca 2023-03-03 07:03:19 +00:00 committed by Willy Sudiarto Raharjo
parent b1f0d17c83
commit 0fc0776ec4
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 32 additions and 18 deletions

View file

@ -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

View file

@ -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"

View file

@ -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
>