LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-03-2005, 08:25 AM   #91
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
OOo 1.9.m122 SlackBuild & Language Pack SlackBuild


OpenOffice.org 1.9.m122 SlackBuild is now out - more pointless changes on the packaging side (can't seem to make their minds up...)

SlackBuild for OOo is here:
http://slackbuild.strangeworlds.co.uk/ooo

G'zipped tar of the SlackBuild and slack-desc's:
http://slackbuild.strangeworlds.co.uk/ooo/ooo.tar.gz
----
SlackBuild for OOo Language Pack:
http://slackbuild.strangeworlds.co.uk/ooo-langpack

G'zipped tar of the Language Pack SlackBuild and slack-desc's:
http://slackbuild.strangeworlds.co.u...angpack.tar.gz

(Language Packs are available from here or unofficial ones here (such as en-GB!))
 
Old 08-03-2005, 09:11 AM   #92
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
the default OO is en_us but it is possible to enable en_gb.

If you go to Tool --> Options a box appears. Look for Languages Settings on the left hand side and click on it. Click on Languages. You will see an heading "Default languages for documents" under which is the option "Western" that is set to English (USA). Click on English (USA), scroll up one place and select English (UK) and hey presto, spell check will now tell you that colour is correct.
 
Old 08-03-2005, 09:21 AM   #93
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
That only changes the dictionary - it does not come with user interface and help menus in en-GB unless you install the language pack. (i.e. the menus will still say 'color' until you install the pack and switch over the user interface language).

Last edited by cathectic; 08-03-2005 at 09:24 AM.
 
Old 09-12-2005, 07:12 AM   #94
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
Just wondering...is the SlackBuild for beta 2 ready yet?
 
Old 09-12-2005, 07:20 AM   #95
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
take the SlackBuild script for version 122 and change the following:

Code:
VERSION=1.9.122

mv $PKG/SRC680_m122_native_packed-2_en-US.8941/* $PKG
to

Code:
VERSION=1.9.125

mv $PKG/OOo2.0beta2_native_packed_en-US/* $PKG
and replace all instances of openofficeorg with openoffice.org

Once I did all that it worked for me but wouldn't incorporate the package descriptions. Probably something to do with the replacement of openofficeorg with openoffice.org. Ah well it works and that's all that matters.
 
Old 09-12-2005, 01:47 PM   #96
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
Quote:
Probably something to do with the replacement of openofficeorg with openoffice.org. Ah well it works and that's all that matters.
Yes, all the descriptions have to be updated to match it.

Quote:
is the SlackBuild for beta 2 ready yet?
A new SlackBuild is now available here: http://slackbuild.strangeworlds.co.uk/ooo
(Either download ooo.tar.gz, or download the SlackBuild + the slack-desc directory and it's contents. *Do not* try to reuse your old slack-desc's, I've moved them around, renamed them and updated them.)

Please note that I have altered the script slightly for the 1.9.128 release (the build after 2.0beta2 aka 1.9.125). To use it with Beta 2, edit ooo.SlackBuild and edit the following details as such:

1. VERSION=1.9.125
2. INPUT=OOo_2.0beta2_LinuxIntel_install.tar.gz
3. Change
Code:
# Needed for >113 (Not 118)
# mv $PKG/OOo2.0beta2_native_packed_en-US/* $PKG
mv SRC680_m128_native_packed-1_en-US.8951/* $PKG
to
Code:
# Needed for >113 (Not 118)
mv $PKG/OOo2.0beta2_native_packed_en-US/* $PKG
# mv SRC680_m128_native_packed-1_en-US.8951/* $PKG
 
Old 10-27-2005, 11:09 AM   #97
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
cathectic: not sure if this has been suggested before, but what about using rpm2cpio and cpio in your script instead of rpm2tgz? That way you would avoid the pointless tar-ing and gzip-ing that rpm2tgz does, and therefore avoid having to re-unpack the tgzs it creates, thus saving (probably quite a bit of) time.
 
Old 10-28-2005, 10:25 AM   #98
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
OOo 2 SlackBuild - "Need For Speed"(TM) Edition

Thanks to Nobber's help, a new version of the OOo SlackBuild has been uploaded. As it is now using rpm2cpio, it is significantly faster than the previous SlackBuilds. There are also a few minor updates regarding file ownership (files are all now properly owned by root.root).

There *shouldn't* be any problems with it (I already did the damage to my own system, so the nasty stuff should be fixed). But if you do find any problems, please report them back.

http://slackbuild.strangeworlds.co.uk/ooo - OOo
http://slackbuild.strangeworlds.co.uk/ooo-langpack - OOo Language Pack
 
Old 10-29-2005, 10:19 AM   #99
YellowBull
LQ Newbie
 
Registered: Jun 2004
Location: The Netherlands
Distribution: Slackware
Posts: 17

Rep: Reputation: 0
I found a small error in the latest script:

PKGNAME[9]=graphicfilter

should be:

PKGNAME[8]=graphicfilter
 
Old 10-29-2005, 04:55 PM   #100
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
Fixed - thanks!
 
Old 07-13-2006, 10:34 AM   #101
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
Hi, I'm unsure if the openoffice.org slackbuild is still being maintained. Here is modified slackbuild I used to install the most up to date openoffice.org, version 2.0.3. Changes were to the the version (2.0.3), build number (7) and build_menu number (2). (I placed a k after the script version number so I knew which script I was editing.)

Code:
#!/bin/sh
# 2006 Carlos Corbacho <cathectic AT gmail DOT com>
#
# SlackBuild Script for OpenOffice.org 2.0
# Version: 0.6.5-k (2006-07-03)
#
# Installation:
# 1) Save this script to the same directory as the file you downloaded
#    from OpenOffice.org
# 2) Update VERSION and INPUT if need be
# 3) Change 'FOLDALL' depending on if you want one large 'super package'
#    or individual ones (packages can be excluded futher down in the script
#    where marked to do so.) - the default is to provide you with lots of
#    different packages, so you can choose which to install later.
# 4) Change to root (su, etc... if you use sudo, you must have /sbin in your path for makepkg)
# 6) Run: sh ooo.SlackBuild [--cleanup]
# 7) Sit back.
# 8) Your completed packages will be dumped to /tmp
#
# Slamd64 users: Disable Java in OOo, otherwise OOo will run horribly slow!
#
# Language notes:
# You can find an entire tar.gz with your local language in here:
# ftp://ftp.linux.cz/pub/localization/OpenOffice.org/devel/680/OOA680_m1/Build-1/
# (It saves having to go and dig up the language packs seperately. Modify INPUT
# accordingly if you use one of their builds)

# Set initial variables:
CWD=`pwd`
PKG=/tmp/package-ooo

# Change to the version of OOo you are using this script with
VERSION=2.0.3

# 2.0 hack - directory versions don't match package name versions
S_VERSION=2.0

# Most of the packages are i586. Edit this only if that changes
ARCH=${ARCH:-i586}

# Most OOo packages are build 1 - edit this if that changes
BUILD=7

# Change to the name of the file you downloaded from OOo
# Usually in the form of: OOo_$VERSION_LinuxIntel_install.tar.gz
INPUT=OOo_${VERSION}_LinuxIntel_install.tar.gz

# Destination of outputted files
DESTINATION=/tmp

if [ ! -r $INPUT ]; then
echo "Cannot find $INPUT Terminating..."
echo "Check that VERSION and INPUT are correct, and that you are running this SlackBuild in the same \
directory as the input file."
exit
fi

# Say "yes" here if you want menus to be built
# Say "no" if you don't
MENU=yes

# Say "yes" here if you want descriptions to be added (say 'yes' here if you also want to fold any packages
#   into another
# Say "no" if you don't (if you say 'yes' to FOLDALL, this is set to 'yes')
DESCRIPTION=yes

# Say "yes" here if you to fold all packages into one
# Say "no" if you don't
FOLDALL=yes

# Say "yes" here if you just want all core packages to be folded into one
# Say "no" if you don't
FOLDCORE=yes

# Say "yes" here if you want spellcheck folded into core01/core
# Say "no" if you don't
FOLDSPELL=yes

# Do *not* touch this - it sets the correct variables for 'FOLDALL'
if [ $FOLDALL = yes ]; then
  FOLDCORE=no
  FOLDSPELL=no
  DESCRIPTION=yes
fi

# Prepare a package directory
function preparePackage
{
      mkdir -p $PKG/package
      cd $PKG/package
}

# Extract a package, and then delete the original RPM file
# Argument 1: Package Name
# Argument 2: Architecture
function extractPackage
{
      RPM=openoffice.org-$1-$VERSION-$2-$BUILD.rpm

      rpm2cpio $PKG/$RPM | cpio -imd -R 0:0 2> /dev/null
      rm $PKG/$RPM

      # Fix directory permissions problem
      find . -type d -perm 700 -exec chmod 755 {} \;
}

# Build a package and cleanup
# Argument 1: Package Name
# Argument 2: Architecture
# Argument 3: slack-desc file name
function buildPackage
{
      mkdir $PKG/package/install
      cat $CWD/${3} > $PKG/package/install/slack-desc
      makepkg -l y -c n $PKG/openoffice.org-$1-$VERSION-$2-$BUILD.tgz
      cd $PKG
      rm -rf $PKG/package
}


rm -rf $PKG
mkdir -p $PKG
cd $PKG
tar xzvf $CWD/$INPUT

# If we can't find the RPMS directory, find it and put it somewhere
# that it can be accessed
if [ ! -r RPMS ]; then
  find . -name "RPMS" | xargs -i'{}' mv '{}' $PKG
fi

cd $PKG/RPMS

# Add desktop integration RPMS to the other RPMS
mv $PKG/RPMS/desktop-integration/* $PKG/RPMS

#sleep 30

# Delete the RedHat, Mandrake/ Mandriva and Free Desktop menus
# Do *not* add SuSE here - that package is needed later
rm $PKG/RPMS/openoffice.org-redhat*
rm $PKG/RPMS/openoffice.org-mandr*
rm $PKG/RPMS/openoffice.org-freedesktop*
rm $PKG/RPMS/openoffice.org-debian*

# Add any other packages you don't want here in the form
# rm $PKG/RPMS/openofficeorg-$PACKAGENAME*

# Rename the TGZs to match the Slackware format of
# $PROGRAM-$VERSION-$ARCH-$REVISION.tgz/rpm

echo "Renaming packages to match Slackware format"

rename -$BUILD.noarch -noarch-$BUILD $PKG/RPMS/*
rename -$BUILD.$ARCH -$ARCH-$BUILD $PKG/RPMS/*
mv $PKG/RPMS/*.rpm $PKG
cd $PKG
rm -rf $PKG/RPMS

# Build menus for Slackware
if [ $MENU = yes ]; then

  # As of 2.0.2 the menus have a different build revision
  BUILD_MENU=2

  # Build Slackware menus for KDE & Gnome/ XFCE/ Free Desktop compliant
  preparePackage
  #extractPackage suse-menus noarch

  # Dirty hack until I can find a nice way to fix the multiple build revisions problem
  (
      RPM=openoffice.org-suse-menus-$VERSION-${BUILD_MENU}.noarch.rpm
      rpm2cpio $PKG/$RPM | cpio -imd -R 0:0 2> /dev/null
      rm $PKG/$RPM

      # Fix directory permissions problem
      find . -type d -perm 700 -exec chmod 755 {} \;
  )

  mv $PKG/package/opt/gnome/share/* $PKG/package/usr/share
  rm -rf $PKG/package/opt/gnome
  mv $PKG/package/opt/kde3 $PKG/package/opt/kde

  # Backwards compatibility with older beta candidates
  rm -rf $PKG/package/opt/kde/share/applnk

  mkdir -p $PKG/package/usr/share/applications
  cd $PKG/package/usr/share/applications

  # Remove all the incorrect symlinks
  rm $PKG/package/usr/share/applications/*
  ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/printeradmin.desktop openoffice.org-${S_VERSION}-printeradmin.desktop
  ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/base.desktop openoffice.org-${S_VERSION}-base.desktop
  ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/calc.desktop openoffice.org-${S_VERSION}-calc.desktop
  ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/draw.desktop openoffice.org-${S_VERSION}-draw.desktop
  ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/math.desktop openoffice.org-${S_VERSION}-math.desktop
  ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/impress.desktop openoffice.org-${S_VERSION}-impress.desktop
  ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/writer.desktop openoffice.org-${S_VERSION}-writer.desktop
  # ln -sf /opt/openoffice.org${S_VERSION}/share/xdg/printer.desktop openoffice.org-${S_VERSION}-printer.desktop

  # Replace the binaries in /usr/bin - correct link to file
  cd $PKG/package
  rm $PKG/package/usr/bin/*

  cat << _EOF_ > $PKG/package/usr/bin/openoffice.org-${S_VERSION}
#!/bin/sh
exec /opt/openoffice.org${S_VERSION}/program/soffice "\$@"
_EOF_

  cat << _EOF_ > $PKG/package/usr/bin/openoffice.org-${S_VERSION}-printeradmin
#!/bin/sh
exec /opt/openoffice.org${S_VERSION}/program/spadmin
_EOF_

# GNOME concession - if I'm missing anything else here, please let me know
  mkdir -p $PKG/package/install
  cat << _EOF_ > $PKG/package/install/doinst.sh
( if which update-mime-database; then update-mime-database /usr/share/mime; fi ) &> /dev/null
( if which update-desktop-database; then update-desktop-database; fi ) &> /dev/null
_EOF_

  chmod a+x $PKG/package/install/doinst.sh
  chmod -R 755 $PKG/package/usr
  chown -R root.bin $PKG/package/usr/bin

# If we're not creating a 'super package', then slackware-menus needs to be packaged seperately
  if [ $FOLDALL = no ]; then
    buildPackage slackware-menus noarch slack-desc/slack-desc.slackware-menus
  fi

else
  # Delete the SuSE menu package
  rm $PKG/openoffice.org-suse*
fi

# Add package descriptions

if [ $DESCRIPTION = yes ]; then

  echo "Adding package descriptions (hold on a little longer...)"

# If spelling is to be added to a core package, extract it so that we can do it transparently with the
# core packages
  if [ $FOLDSPELL = yes ]; then
    preparePackage
    extractPackage spellcheck $ARCH
    cd $PKG
  fi

# Fold all core packages into one
  if [ $FOLDCORE = yes ]; then
    preparePackage

    for CORE in `seq -w 1 10`
    do
      extractPackage core$CORE $ARCH

      if [ -e $PKG/openoffice.org-core${CORE}u-$VERSION-$ARCH-$BUILD.rpm ]; then
        extractPackage core${CORE}u $ARCH
      fi

    done

    buildPackage core $ARCH slack-desc/slack-desc.core

# Fold all packages into one
  elif [ $FOLDALL = yes ]; then

    echo "Building super package (almost done!)"

    preparePackage

    for file in $PKG/openoffice.org*-$VERSION-*.rpm
    do
        # I don't know sed well enough to tidy up this line - any help would be appreciated here!
        package=`echo ${file} | sed s%${PKG}/openoffice.org-%% | sed s/-${VERSION}-${ARCH}-${BUILD}.rpm//`
        extractPackage $package $ARCH
    done

#    buildPackage
    mkdir $PKG/package/install
    rm $PKG/package/install/slack-desc
    cat $CWD/slack-desc/slack-desc.ooo > $PKG/package/install/slack-desc
    makepkg -l y -c n $PKG/openoffice.org-$VERSION-$ARCH-$BUILD.tgz
    cd $PKG
    rm -rf $PKG/package

  else

# Core Packages
    for CORE in `seq -w 1 10`
    do
      preparePackage

      if [ -e $PKG/openoffice.org-core${CORE}u-$VERSION-$ARCH-$BUILD.rpm ]; then
	extractPackage core${CORE}u $ARCH
      fi

      extractPackage core$CORE $ARCH
      buildPackage core$CORE $ARCH slack-desc/slack-desc.core

    done

    # This is inefficent, bad code! It should be updated using something like the foldall
    # code, that does not rely on pre-specifying the package names
    PKGNAME[0]=writer
    PKGNAME[1]=calc
    PKGNAME[2]=math
    PKGNAME[3]=base
    PKGNAME[4]=impress
    PKGNAME[5]=draw
    PKGNAME[6]=testtool
    PKGNAME[7]=gnome-integration
    PKGNAME[8]=graphicfilter
    PKGNAME[9]=javafilter
    PKGNAME[10]=spellcheck
    PKGNAME[11]=pyuno
    PKGNAME[12]=xsltfilter
    PKGNAME[13]=emailmerge
    # core?

    for i in `seq 0 13`
    do

      if [ -e $PKG/openoffice.org-${PKGNAME[i]}-$VERSION-$ARCH-$BUILD.rpm ]; then
        preparePackage
        extractPackage ${PKGNAME[i]} $ARCH
        buildPackage ${PKGNAME[i]} $ARCH slack-desc/slack-desc.${PKGNAME[i]}
      fi

    done
  fi



fi

# Move all the tgz files to $DESTINATION
mv $PKG/*.tgz $DESTINATION

# Clean up the extra stuff:
if [ "$1" = "--cleanup" ]; then
  rm -rf $PKG
fi
 
Old 07-13-2006, 01:39 PM   #102
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
I'm on holiday and borrowing an unreliable wireless connection. When I get back, I'll update the SlackBuild.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenOffice 2 beta in Slack objorkum Slackware 5 05-06-2005 07:46 AM
grub runs then: Kernel Panic: unable to mount 03:00, slack 10.0 chrisidaho Slackware 8 02-09-2005 03:47 PM
Openoffice Impress preview sidebar saravkrish Linux - Software 0 01-09-2005 02:35 PM
OpenOffice package for Slack 9.1 dazzlehank Slackware 6 01-12-2004 08:56 AM
OpenOffice and PAM in Slack 9 Cerbere Slackware 1 08-08-2003 08:22 AM


All times are GMT -5. The time now is 09:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration