[Lunar-commits] <moonbase> openoffice-bin: Added the x86_64 changes
Terry Chan
tchan at lunar-linux.org
Fri Feb 26 08:34:16 CET 2010
commit ebc92353a72659e97dba4e3343fa4dbd79bd52f2
Author: Terry Chan <tchan at lunar-linux.org>
Date: Fri Feb 26 01:34:16 2010 -0600
openoffice-bin: Added the x86_64 changes
---
x11-apps/openoffice-bin/BUILD.x86_64 | 93 ++++++++++++++++++++++++++++++++
x11-apps/openoffice-bin/DETAILS.x86_64 | 23 ++++++++
2 files changed, 116 insertions(+), 0 deletions(-)
diff --git a/x11-apps/openoffice-bin/BUILD.x86_64 b/x11-apps/openoffice-bin/BUILD.x86_64
new file mode 100644
index 0000000..12cdb9b
--- /dev/null
+++ b/x11-apps/openoffice-bin/BUILD.x86_64
@@ -0,0 +1,93 @@
+(
+ OO_INSTALL_DIR="${SOURCE_DIRECTORY}/RPMS"
+ OO_DESK_DIR="${SOURCE_DIRECTORY}/desktop-integration/usr"
+ OO_DIR="/opt/lunar/openoffice"
+
+ cd $OO_INSTALL_DIR &&
+
+ if [ "$USE_DESKTOPINTEGRATION" = "y" ] ; then
+
+ mv ${OO_INSTALL_DIR}/desktop-integration ${SOURCE_DIRECTORY} &&
+ cd ${SOURCE_DIRECTORY}/desktop-integration/ &&
+
+ INT_FILE=openoffice.org3.2-freedesktop-menus-3.2-9472.noarch &&
+
+ rpm2cpio $INT_FILE.rpm > $INT_FILE.cpio &&
+ cpio -idm < $INT_FILE.cpio &&
+
+ sedit "s|/etc/openoffice.org3|$OO_DIR|g" ${OO_DESK_DIR}/bin/openoffice.org3 &&
+ sedit "s|/etc/openoffice.org3|$OO_DIR|g" ${OO_DESK_DIR}/bin/openoffice.org3-printeradmin || exit 1
+ fi &&
+
+ cd $OO_INSTALL_DIR &&
+ rm -rf desktop-integration &&
+
+ # not sure what this rpm is for, but its not there in 32bit OO, so I removed it
+ rm -rf userland &&
+
+ # Let the magic happen. Ugh, I hate rpm
+ message "${MESSAGE_COLOR}Unpacking RPMs...${DEFAULT_COLOR}" &&
+ for pack in ${OO_INSTALL_DIR}/*; do
+ rpm2cpio $pack > `basename $pack .rpm`.cpio || exit 1
+ done &> /dev/null
+
+ # Now, lets get rid of the rpms
+ rm -rf ${OO_INSTALL_DIR}/*.rpm &&
+
+ for pack in ${OO_INSTALL_DIR}/*; do
+ cpio -idm < $pack &> /dev/null || exit 1
+ done &&
+
+ prepare_install &&
+ message "${MESSAGE_COLOR}Installing OpenOffice ${VERSION}...${DEFAULT_COLOR}" &&
+ mkdir -p $MODULE_PREFIX/openoffice &&
+ chown -R root:root "${OO_INSTALL_DIR}/opt" &&
+ # symlinks are not copied correctly
+ rm "${OO_INSTALL_DIR}/opt/openoffice.org3/basis-link" &&
+ rm "${OO_INSTALL_DIR}/opt/openoffice.org/ure/bin/uno" &&
+ rm "${OO_INSTALL_DIR}/opt/openoffice.org/ure/bin/regcomp" &&
+ rm "${OO_INSTALL_DIR}/opt/openoffice.org/basis3.2/program/libicuuc.so.40" &&
+ rm "${OO_INSTALL_DIR}/opt/openoffice.org/basis3.2/program/libicui18n.so.40" &&
+ cp -a "${OO_INSTALL_DIR}/opt/openoffice.org3" /opt/lunar/openoffice/ &&
+ cp -a "${OO_INSTALL_DIR}/opt/openoffice.org" /opt/lunar/openoffice &&
+ # create the symlinks correctly
+ cd /opt/lunar/openoffice &&
+ ln -sf openoffice.org/basis3.2 basis-link &&
+ cd /opt/lunar/openoffice/openoffice.org/ure/bin &&
+ ln -sf startup.sh uno &&
+ ln -sf startup.sh regcomp &&
+ cd /opt/lunar/openoffice/openoffice.org/basis3.2/program &&
+ ln -sf libicuuc.so.40.1 libicuuc.so.40 &&
+ ln -sf libicui18n.so.40.1 libicui18n.so.40 &&
+
+ #Added this force symlink creation at sofar's request
+ cd /usr/bin &&
+ ln -sf ${OO_DIR}/program/soffice soffice &&
+ ln -sf ${OO_DIR}/program/scalc scalc &&
+ ln -sf ${OO_DIR}/program/swriter swriter &&
+
+ if [ "$USE_DESKTOPINTEGRATION" = "y" ] ; then
+ sedit 's:/opt/:/opt/lunar/openoffice/:g' \
+ ${OO_DESK_DIR}/bin/openoffice.org3 &&
+ install -m755 ${OO_DESK_DIR}/bin/openoffice.org3 \
+ ${OO_DESK_DIR}/bin/openoffice.org3-printeradmin /usr/bin/ &&
+
+ # Install icons for the .desktop files
+ mkdir -p -m0755 /usr/share/icons/{gnome,hicolor} &&
+ cd ${OO_DESK_DIR}/share/icons &&
+ cp -r gnome/*x* /usr/share/icons/gnome &&
+ cp -r hicolor/*x* /usr/share/icons/hicolor &&
+ gtk-update-icon-cache --force /usr/share/icons/hicolor &&
+
+ install -m644 "${OO_DESK_DIR}/share/mime/packages/openoffice.org.xml" /usr/share/mime/packages/ &&
+ update-mime-database /usr/share/mime/ &> /dev/null &&
+
+ DESKTOP_FILES="base calc draw impress math printeradmin writer" &&
+
+ for FILE in ${DESKTOP_FILES} ; do
+ ln -s ${OO_DIR}/share/xdg/${FILE}.desktop \
+ /usr/share/applications/${FILE}.desktop || exit 1
+ done
+ fi || exit 1
+
+) > $C_FIFO 2>&1
diff --git a/x11-apps/openoffice-bin/DETAILS.x86_64 b/x11-apps/openoffice-bin/DETAILS.x86_64
new file mode 100644
index 0000000..1b04ee4
--- /dev/null
+++ b/x11-apps/openoffice-bin/DETAILS.x86_64
@@ -0,0 +1,23 @@
+ MODULE=openoffice-bin
+ VERSION=3.2.0
+ SOURCE=OOo_${VERSION}_LinuxX86-64_install_en-US.tar.gz
+SOURCE_DIRECTORY=${BUILD_DIRECTORY}/OOO320_m12_native_packed-1_en-US.9483
+ SOURCE_URL[0]=http://ftp.ussg.iu.edu/openoffice/stable/$VERSION
+ SOURCE_URL[1]=http://mirrors.sunsite.dk/openoffice/stable/$VERSION
+ SOURCE_URL[2]=http://niihau.student.utwente.nl/openoffice/stable/$VERSION
+ SOURCE_URL[3]=ftp://ftp.funet.fi/pub/mirrors/openoffice.org/stable/$VERSION
+ SOURCE_VFY=sha1:e0e628aacae835ad5218082add176da1d6de4021
+ WEB_SITE=http://www.openoffice.org
+ ENTERED=20020704
+ UPDATED=20100213
+ SHORT="The open office suite for unix"
+ LDD_CHECK=off
+ ARCHIVE=off
+
+cat << EOF
+OpenOffice is the open source alternative to a full office suite. Derived
+from SUN's staroffice 5.2, this group of developers started to create
+a GPL'd version of staroffice. It includes all you need for the desktop,
+including word processor, spreadsheet application, presentation maker
+and more, and can read and write almost any Microsoft office file.
+EOF
More information about the Lunar-commits
mailing list