Hi,
I was looking for a rainy day project yesterday so...
I built this using (or should I say butchering) Robby's
slackbuild script for 2.4.
I'm pretty new at this so please feel free to check my work and comment.
I put the following in my build directory:
OOo-Dev_DEV300_m19_LinuxIntel_install_en-US.tar.gz
openoffice.org.SlackBuild
slack-desc
I removed the following RPM's from the source archive:
jre-6u6-linux-i586.rpm
ooobasis-dev3.0-gnome-integration-3.0.0-9317.i586.rpm
ooobasis-dev3.0-kde-integration-3.0.0-9317.i586.rpm
I edited the SlackBuild to look like this:
Code:
#!/bin/bash
# Slackware build script for OpenOffice.org (binary repackaging)
# Copyright 2006-2008 Robby Workman, Northport, Alabama, ASA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=openoffice.org
VERSION=DEV300_m19
ARCH=i586
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
OOLANG=${OOLANG:-en-US}
PKG_LANG=$(echo $OOLANG | sed s/-/_/)
set -e
SOURCEDIR=$(tar -tzf $CWD/OOo-Dev_${VERSION}_LinuxIntel_install_${OOLANG}.tar.gz | head -1 | tr -d \/)
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SOURCEDIR
tar xvf $CWD/OOo-Dev_${VERSION}_LinuxIntel_install_${OOLANG}.tar.gz
cd $SOURCEDIR/RPMS/
for FILE in *.rpm ; do rpm2cpio < $FILE | cpio -imdv ; done
mv opt $PKG
cd $PKG
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
chown -R root:root .
find . -type d -exec chmod 755 {} \;
chmod -R u+rw,go+r-w,a-s .
/sbin/makepkg -c n -l y $OUTPUT/$PRGNAM-${VERSION}_${PKG_LANG}-$ARCH-$BUILD$TAG.tgz
It builds fine and the resulting package installs everything to /opt/ooo-dev and /opt/ooo-dev3.
I intentionally left out all desktop integration.
Nothing installs outside of the /opt directory (no docs, symlinks, etc).
The package uninstalls cleanly and has no interaction with OpenOffice 2.4.
The startup scripts are in /opt/ooo-dev3/program/.
You can symlink to them or create your own menu entries manually.
screenshot1
screenshot2
Dig