From 0fc0776ec4da421a0011c63921e5adc041bbb019 Mon Sep 17 00:00:00 2001 From: "Juan M. Lasca" Date: Fri, 3 Mar 2023 07:03:19 +0000 Subject: [PATCH] office/openoffice.org: Updated for version 4.1.14. New maintainer. Signed-off-by: Willy Sudiarto Raharjo --- .../openoffice.org/openoffice.org.SlackBuild | 31 ++++++++++++------- office/openoffice.org/openoffice.org.info | 14 ++++----- .../patches/01-gtk2_theme.patch | 5 +++ 3 files changed, 32 insertions(+), 18 deletions(-) create mode 100644 office/openoffice.org/patches/01-gtk2_theme.patch 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 # # 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 < $PKG/usr/bin/${SRCNAM}4 +cat < $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 +>