xap/openoffice.org: Added.
parent
ad2e99d222
commit
125a63346b
@ -0,0 +1 @@
|
||||
e0c57bd78ed8f20e3d4ad5063168b22417c80579 OOo_3.0.0_LinuxIntel_install_en-US.tar.gz
|
@ -0,0 +1,72 @@
|
||||
diff -Nur a/opt/openoffice.org3/share/xdg/base.desktop b/opt/openoffice.org3/share/xdg/base.desktop
|
||||
--- a/opt/openoffice.org3/share/xdg/base.desktop 2008-09-19 20:04:46.000000000 -0500
|
||||
+++ b/opt/openoffice.org3/share/xdg/base.desktop 2008-09-30 14:05:11.639524235 -0500
|
||||
@@ -4,7 +4,7 @@
|
||||
Icon=openofficeorg3-base
|
||||
Type=Application
|
||||
Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-MoreApplications-Databases;
|
||||
-Exec=openoffice.org3 -base %U
|
||||
+Exec=sbase %U
|
||||
MimeType=application/vnd.oasis.opendocument.database;application/vnd.sun.xml.base;
|
||||
Name=OpenOffice.org 3.0 Base
|
||||
GenericName=Database Development
|
||||
diff -Nur a/opt/openoffice.org3/share/xdg/calc.desktop b/opt/openoffice.org3/share/xdg/calc.desktop
|
||||
--- a/opt/openoffice.org3/share/xdg/calc.desktop 2008-09-19 20:04:46.000000000 -0500
|
||||
+++ b/opt/openoffice.org3/share/xdg/calc.desktop 2008-09-30 14:05:19.224052521 -0500
|
||||
@@ -4,7 +4,7 @@
|
||||
Icon=openofficeorg3-calc
|
||||
Type=Application
|
||||
Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Spreadsheets;
|
||||
-Exec=openoffice.org3 -calc %U
|
||||
+Exec=scalc %U
|
||||
MimeType=application/vnd.oasis.opendocument.spreadsheet;application/vnd.oasis.opendocument.spreadsheet-template;application/vnd.sun.xml.calc;application/vnd.sun.xml.calc.template;application/vnd.stardivision.calc;application/vnd.stardivision.chart;application/msexcel;application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.ms-excel.sheet.macroenabled.12;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.template.macroenabled.12;application/vnd.ms-excel.sheet.binary.macroenabled.12;
|
||||
Name=OpenOffice.org 3.0 Calc
|
||||
GenericName=Spreadsheet
|
||||
diff -Nur a/opt/openoffice.org3/share/xdg/draw.desktop b/opt/openoffice.org3/share/xdg/draw.desktop
|
||||
--- a/opt/openoffice.org3/share/xdg/draw.desktop 2008-09-19 20:04:46.000000000 -0500
|
||||
+++ b/opt/openoffice.org3/share/xdg/draw.desktop 2008-09-30 14:05:26.016528565 -0500
|
||||
@@ -4,7 +4,7 @@
|
||||
Icon=openofficeorg3-draw
|
||||
Type=Application
|
||||
Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Drawing;
|
||||
-Exec=openoffice.org3 -draw %U
|
||||
+Exec=sdraw %U
|
||||
MimeType=application/vnd.oasis.opendocument.graphics;application/vnd.oasis.opendocument.graphics-template;application/vnd.sun.xml.draw;application/vnd.sun.xml.draw.template;application/vnd.stardivision.draw;
|
||||
Name=OpenOffice.org 3.0 Draw
|
||||
Comment=Create and edit drawings, flow charts, and logos by using Draw.
|
||||
diff -Nur a/opt/openoffice.org3/share/xdg/impress.desktop b/opt/openoffice.org3/share/xdg/impress.desktop
|
||||
--- a/opt/openoffice.org3/share/xdg/impress.desktop 2008-09-19 20:04:46.000000000 -0500
|
||||
+++ b/opt/openoffice.org3/share/xdg/impress.desktop 2008-09-30 14:05:32.997015784 -0500
|
||||
@@ -4,7 +4,7 @@
|
||||
Icon=openofficeorg3-impress
|
||||
Type=Application
|
||||
Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Presentations;
|
||||
-Exec=openoffice.org3 -impress %U
|
||||
+Exec=simpress %U
|
||||
MimeType=application/vnd.oasis.opendocument.presentation;application/vnd.oasis.opendocument.presentation-template;application/vnd.sun.xml.impress;application/vnd.sun.xml.impress.template;application/vnd.stardivision.impress;application/mspowerpoint;application/vnd.ms-powerpoint;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.ms-powerpoint.presentation.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.ms-powerpoint.template.macroenabled.12;
|
||||
Name=OpenOffice.org 3.0 Impress
|
||||
GenericName=Presentation
|
||||
diff -Nur a/opt/openoffice.org3/share/xdg/math.desktop b/opt/openoffice.org3/share/xdg/math.desktop
|
||||
--- a/opt/openoffice.org3/share/xdg/math.desktop 2008-09-19 20:04:46.000000000 -0500
|
||||
+++ b/opt/openoffice.org3/share/xdg/math.desktop 2008-09-30 14:05:40.449534571 -0500
|
||||
@@ -4,7 +4,7 @@
|
||||
Icon=openofficeorg3-math
|
||||
Type=Application
|
||||
Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Other;
|
||||
-Exec=openoffice.org3 -math %U
|
||||
+Exec=smath %U
|
||||
MimeType=application/vnd.oasis.opendocument.formula;application/vnd.sun.xml.math;application/vnd.stardivision.math;
|
||||
Name=OpenOffice.org 3.0 Math
|
||||
Comment=Create and edit scientific formulas and equations by using Math.
|
||||
diff -Nur a/opt/openoffice.org3/share/xdg/writer.desktop b/opt/openoffice.org3/share/xdg/writer.desktop
|
||||
--- a/opt/openoffice.org3/share/xdg/writer.desktop 2008-09-19 20:04:46.000000000 -0500
|
||||
+++ b/opt/openoffice.org3/share/xdg/writer.desktop 2008-09-30 14:06:00.938967174 -0500
|
||||
@@ -4,7 +4,7 @@
|
||||
Icon=openofficeorg3-writer
|
||||
Type=Application
|
||||
Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Wordprocessors;
|
||||
-Exec=openoffice.org3 -writer %U
|
||||
+Exec=swriter %U
|
||||
MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/vnd.stardivision.writer;application/msword;application/vnd.ms-word;application/x-doc;application/rtf;text/rtf;application/vnd.wordperfect;application/wordperfect;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroenabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroenabled.12;
|
||||
Name=OpenOffice.org 3.0 Writer
|
||||
GenericName=Word Processor
|
@ -0,0 +1,16 @@
|
||||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications
|
||||
fi
|
||||
|
||||
if [ -x /usr/bin/update-mime-database ]; then
|
||||
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||
for theme in gnome locolor hicolor ; do
|
||||
if [ -e usr/share/icons/$theme/icon-theme.cache ]; then
|
||||
/usr/bin/gtk-update-icon-cache usr/share/icons/$theme >/dev/null 2>&1
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
@ -0,0 +1,126 @@
|
||||
#!/bin/bash
|
||||
# Build script for Slackware
|
||||
# Damien Goutte-Gattat "gouttegd" <Damien.Goutte-Gattat at e.ujf-grenoble.fr>
|
||||
#
|
||||
# Redistribution and use of this script, with or without modifications, 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.
|
||||
#
|
||||
# Latest openoffice.org sourcecode is available at:
|
||||
# http://www.openoffice.org/
|
||||
|
||||
# Source package infos
|
||||
VERSION=${VERSION:-3.0.0}
|
||||
ARCHIVE=${ARCHIVE:-OOo_${VERSION}_LinuxIntel_install_en-US.tar.gz}
|
||||
WGET=${WGET:-ftp://ftp-atl.osuosl.org/pub/openoffice/stable/$ARCHIVE}
|
||||
|
||||
# Built package infos
|
||||
NAMETGZ=${NAMETGZ:-openoffice.org}
|
||||
BUILD=${BUILD:-1GGD}
|
||||
ARCH=i586
|
||||
TARGET=${TARGET:-i486}
|
||||
|
||||
# Directories
|
||||
TMP=${TMP:-/tmp}
|
||||
OUT=${OUT:-$TMP/build}
|
||||
PKG=${PKG:-$OUT/$NAMETGZ}
|
||||
CWD=$(pwd)
|
||||
|
||||
set -e # Quit if a command returns non-zero
|
||||
|
||||
# Sanity checks
|
||||
if [ $UID -eq 0 ]; then
|
||||
echo "You should NOT run this script as ROOT!"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -d $TMP ]; then
|
||||
echo "$TMP does not exist or is not a directory!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Get and verify the source archive
|
||||
if [ ! -r $ARCHIVE ]; then
|
||||
wget "$WGET"
|
||||
fi
|
||||
sha1sum -c $ARCHIVE.sha1
|
||||
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
|
||||
|
||||
# Extract the archive
|
||||
cd $TMP
|
||||
echo "Building $ARCHIVE..."
|
||||
tar xf $CWD/$ARCHIVE
|
||||
cd $NAME
|
||||
|
||||
# Extract the RPMs
|
||||
cd RPMS
|
||||
mv desktop-integration/openoffice.org3.0-freedesktop-menus-3.0-9354.noarch.rpm .
|
||||
rm *onlineupdate*.rpm
|
||||
for FILE in *.rpm ; do rpm2cpio < $FILE | cpio -imdv ; done
|
||||
rm -rf desktop-integration *.rpm
|
||||
mkdir -p $PKG
|
||||
mv opt usr $PKG
|
||||
cd $PKG
|
||||
|
||||
# Create symlinks in /usr/bin
|
||||
cd $PKG/usr/bin
|
||||
for FILE in \
|
||||
sbase scalc sdraw simpress smath soffice spadmin swriter unopkg ; do
|
||||
rm -f $FILE
|
||||
ln -sf /opt/openoffice.org3/program/$FILE . ;
|
||||
done
|
||||
cd -
|
||||
|
||||
# Fix desktop files
|
||||
patch -p1 < $CWD/desktop-file-fix-3.0.0.diff
|
||||
|
||||
# Install dictionary extensions for spellchecking
|
||||
UNOPKG_BIN=$PKG/opt/openoffice.org3/program/unopkg
|
||||
DICT_DIR=$PKG/opt/openoffice.org3/share/extension/install
|
||||
if [ -x "$UNOPKG_BIN" ]; then
|
||||
UNOPKG_TMP=$TMP/$$$$$$
|
||||
find $DICT_DIR -type f -name "dict-*.oxt" \
|
||||
-exec $UNOPKG_BIN add --shared {} \
|
||||
"-env:UserInstallation=file:///$UNOPKG_TMP" \;
|
||||
rm -rf $UNOPKG_TMP
|
||||
fi
|
||||
|
||||
# Place docs at the expected locations
|
||||
mkdir -p $PKG/usr/doc/$NAMETGZ-$VERSION
|
||||
cd $PKG/opt/openoffice.org3
|
||||
mv README* *LICENSE* readmes licenses $PKG/usr/doc/$NAMETGZ-$VERSION
|
||||
cd -
|
||||
|
||||
# Copy slack-desc and doinst.sh file
|
||||
mkdir -p $PKG/install
|
||||
install -m 644 $CWD/slack-desc $PKG/install/slack-desc
|
||||
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh
|
||||
|
||||
# Package the tree
|
||||
cd $PKG
|
||||
mkdir -p $OUT
|
||||
PACKAGING="
|
||||
chown root:root . -R
|
||||
find . -type d -exec chmod 755 {} \;
|
||||
chmod -R u+rw,go+r-w,a-s .
|
||||
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
|
||||
rm -rf $PKG
|
||||
rm -rf $TMP/$NAME
|
||||
"
|
||||
if type -p fakeroot ; then
|
||||
echo "$PACKAGING" | fakeroot
|
||||
else
|
||||
su -c "$PACKAGING"
|
||||
fi
|
@ -0,0 +1,12 @@
|
||||
|-----handy-ruler-----------------------------------------------|
|
||||
openoffice.org: OpenOffice.org (office productivity suite)
|
||||
openoffice.org:
|
||||
openoffice.org: OpenOffice.org is an Open Source, community-developed, multi-
|
||||
openoffice.org: platform office productivity suite. It includes the key
|
||||
openoffice.org: desktop applications, such as a word processor, spreadsheet,
|
||||
openoffice.org: presentation manager, formula editor, database manager and
|
||||
openoffice.org: drawing program, with a user interface and feature set
|
||||
openoffice.org: similar to other office suites. Sophisticated and flexible,
|
||||
openoffice.org: OpenOffice.org also works transparently with a variety of
|
||||
openoffice.org: file formats, including Microsoft Office's.
|
||||
openoffice.org:
|
Loading…
Reference in New Issue