From 52af0e533a50aa8f7e03ad3e3d9ef6aea3b878a9 Mon Sep 17 00:00:00 2001 From: "Ryan P.C. McQuen" Date: Wed, 9 Apr 2014 23:37:28 +0700 Subject: office/openoffice.org: Updated for version 4.0.1 + new maintainer. Signed-off-by: Willy Sudiarto Raharjo --- office/openoffice.org/README | 7 +- office/openoffice.org/openoffice.org.SlackBuild | 109 ++++++++---------------- office/openoffice.org/openoffice.org.info | 16 ++-- 3 files changed, 46 insertions(+), 86 deletions(-) diff --git a/office/openoffice.org/README b/office/openoffice.org/README index b3f3834f9b..c35fb35434 100644 --- a/office/openoffice.org/README +++ b/office/openoffice.org/README @@ -2,10 +2,9 @@ OpenOffice.org is a full-featured open-source office suite that is compatible with all other major office software. This script builds a Slackware package from the official binary (RPM's) -distributed by openoffice.org. Everything needed by the application should -be built statically into it, so there aren't any dependencies not satisfied -by a normal installation. A java runtime environment (jre) is suggested by +distributed by openoffice.org. Everything needed by the application should +be built statically into it, so there aren't any dependencies not satisfied +by a normal installation. A java runtime environment (jre) is suggested by openoffice.org, but it is not required (note that jre can be installed ing the jdk slackbuild provided by slackbuilds.org). -Be sure to look at the script for some optional things you can do when building. diff --git a/office/openoffice.org/openoffice.org.SlackBuild b/office/openoffice.org/openoffice.org.SlackBuild index 1e535033a6..8e78edea2b 100644 --- a/office/openoffice.org/openoffice.org.SlackBuild +++ b/office/openoffice.org/openoffice.org.SlackBuild @@ -1,8 +1,12 @@ #!/bin/sh -# Slackware build script for OpenOffice +# Slackware build script for openoffice.org -# Copyright 2006,2007,2008,2009,2010 Robby Workman, Northport, Alabama, ASA +# Originally written by Niki Kovacs /dev/null | head -n 1 | tr -d \/) # If the above operation failed for some reason, unset SOURCEDIR so that # the "set -eu" below will cause us to bail out with an error +# Normally SOURCEDIR=en-US [ -z $SOURCEDIR ] && unset SOURCEDIR -set -eu - rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT rm -rf $TMP/$SOURCEDIR @@ -104,61 +80,46 @@ rm -rf $TMP/$SOURCEDIR # Extract tarball tar xvf $CWD/$TARNAME -C $TMP -# We'll remove this regardless of whether we're using the jre tarball... -rm -rf $TMP/$SOURCEDIR/{JavaSetup.jar,installdata,setup} -rm -rf $TMP/$SOURCEDIR/RPMS/{userland,jre-*-linux-*.rpm} - cd $TMP/$SOURCEDIR/RPMS # We only need the freedesktop integration, so we move it to the current location -mv desktop-integration/openoffice.org$SRCSHORT-freedesktop-menus-$SRCSHORT-*.noarch.rpm . +mv desktop-integration/openoffice$SRCSHORT-freedesktop-menus-$SRCSHORT-*.noarch.rpm . # We don't want this, so we delete the *onlineupdate*.rpm rm -f *onlineupdate*.rpm # Extract the files from the *.rpm for FILE in *.rpm ; do rpm2cpio < $FILE | cpio -imdv ; done + rm -rf desktop-integration *.rpm mv opt usr $PKG cd $PKG -# Kill a broken symlink -rm -f $PKG/usr/share/applications/openoffice.org3-startcenter.desktop - -# Create symlinks in /usr/bin to actual binaries -# Cambiar los nombres de sbase,scalc, etc, por los de open office +# Fix broken symlinks cd $PKG/usr/bin + rm -f soffice + ln -s ../../opt/openoffice4/program/soffice . +cd - +cd $PKG/usr/share/applications for FILE in \ - sbase scalc sdraw simpress smath soffice spadmin swriter unopkg ; do - rm -f $FILE - ln -sf ../../opt/openoffice.org3/program/$FILE $FILE ; + base calc draw impress javafilter math printeradmin startcenter writer ; do + rm -f openoffice4-$FILE.desktop + ln -sf ../../../opt/openoffice4/share/xdg/$FILE.desktop $FILE.desktop ; done cd - -# Remove DejaVu and Liberation fonts - these are included in other packages -rm -f opt/openoffice.org/basis3.2/share/fonts/truetype/[DL]*.ttf - -# Fix Exec commands in the desktop files -# See http://bugzilla.xfce.org/show_bug.cgi?id=2430 -cd $PKG//opt/openoffice.org3/share/xdg/ - for APP in base calc draw impress math writer; do - sed -i 's%Exec=openoffice.org3 -%Exec=s%' $APP.desktop ; - done -cd - +# Remove DejaVu fonts - these are included in other packages +rm -f $PKG/opt/openoffice4/share/fonts/truetype/DejaVu*.ttf # Move docs to their expected locations mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cd $PKG/opt/openoffice.org3 - mv README* *LICENSE* readmes $PKG/usr/doc/$PRGNAM-$VERSION +cd $PKG/opt/openoffice4 + mv README* share/readme/* $PKG/usr/doc/$PRGNAM-$VERSION + rmdir share/readme cd - -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -# Disable Java support if desired (see above) -if [ "$DISABLE_JAVA" = "YES" ]; then - chmod -x $PKG/opt/$PRGNAM$SRCSHORT/ure/bin/javaldx -fi +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -# We create the install dir, and add to it the slack-desc and doinst.sh file mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh @@ -166,9 +127,9 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh # Fix ownership and permissions and make the package chown -R root:root . find . -type d -exec chmod 755 {} \; -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +chmod -R u+rw,go+r-w,a-s . /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION}_${PKG_LANG}-$PKGARCH-$BUILD$TAG.${PKGTYPE:-tgz} + +# Cleanup +cd $TMP +rm -rf $OOLANG $PKG diff --git a/office/openoffice.org/openoffice.org.info b/office/openoffice.org/openoffice.org.info index 6a926df371..098d813ba0 100644 --- a/office/openoffice.org/openoffice.org.info +++ b/office/openoffice.org/openoffice.org.info @@ -1,10 +1,10 @@ PRGNAM="openoffice.org" -VERSION="3.3.0" -HOMEPAGE="http://openoffice.org" -DOWNLOAD="http://download.services.openoffice.org/files/stable/3.3.0/OOo_3.3.0_Linux_x86_install-rpm-wJRE_en-US.tar.gz" -MD5SUM="24ff3fb594dfb1718512cf41cbe18ffc" -DOWNLOAD_x86_64="http://download.services.openoffice.org/files/stable/3.3.0/OOo_3.3.0_Linux_x86-64_install-rpm-wJRE_en-US.tar.gz" -MD5SUM_x86_64="ca1594218be28ad3d521952e09e79ca1" +VERSION="4.0.1" +HOMEPAGE="https://openoffice.org" +DOWNLOAD="http://sourceforge.net/projects/openofficeorg.mirror/files/4.0.1/binaries/en-US/Apache_OpenOffice_4.0.1_Linux_x86_install-rpm_en-US.tar.gz" +MD5SUM="a0434ff77a1a9645f787f3386cbe0f73" +DOWNLOAD_x86_64="http://sourceforge.net/projects/openofficeorg.mirror/files/4.0.1/binaries/en-US/Apache_OpenOffice_4.0.1_Linux_x86-64_install-rpm_en-US.tar.gz" +MD5SUM_x86_64="7f51836d8a131239552db487253395d7" REQUIRES="jdk" -MAINTAINER="Gerardo Gómez" -EMAIL="gerardo.gr90@gmail.com" +MAINTAINER="Ryan P.C. McQuen" +EMAIL="ryan.q@linux.com" -- cgit v1.2.3