You are not logged in.

#1 2005-09-29 10:10:10

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

[new] openoffice.org RC1

As the package from the unstable branch is a little outdated, I just modified that PKGBUILD for the latest release of openoffice2; release candidate 1

PKGBUILD

pkgname=openoffice2
pkgver=2.0.0rc1
pkgrel=1
pkgdesc="OpenOffice2 Release Candidate"
url="http://www.openoffice.org"
makedepends=('rpmextract')
depends=('x-server' 'desktop-file-utils')
source=(http://downloads.planetmirror.com/pub/openoffice/contrib/rc/2.0.0rc1/OOo_2.0.0rc1_050923_LinuxIntel_install.tar.gz)
install=(openoffice.install)
build() {
  cd $startdir/src/OOO680_m1_native_packed-5_en-US.8958/RPMS
  # change rpms to tar.gz
  for i in *.rpm
  do
  rpmextract.sh $i
  done
  
  # install openoffice files
  cd $startdir/src/OOO680_m1_native_packed-5_en-US.8958/RPMS/opt
  mkdir -p $startdir/pkg/opt
  mv openoffice.org2.0 $startdir/pkg/opt/openoffice2
  
  # install desktop stuff
  cd $startdir/src/OOO680_m1_native_packed-5_en-US.8958/RPMS/desktop-integration
  rpmextract.sh *freedesktop*.rpm
  cp -r usr/ $startdir/pkg/
  cd $startdir/pkg/usr/share
  rm applications/*
  cp $startdir/pkg/opt/openoffice2/share/xdg/*  $startdir/pkg/usr/share/applications
  cd $startdir/pkg/usr
  rm -r bin/
  
  # fix the .desktop files and gnome registry
 # cd $startdir/pkg/usr/share/application-registry
 # sed -i -e 's|command=openoffice.org-2.0|command=/opt/openoffice2/program/soffice|g' *.applications
  cd $startdir/pkg/usr/share/applications
  sed -i -e 's|Exec=openoffice.org-2.0|Exec=/opt/openoffice2/program/soffice|g' *.desktop
  # fix printeradmin desktop file
  sed -i -e 's|Exec=/opt/openoffice2/program/soffice-printeradmin|Exec=/opt/openoffice2/program/spadmin|g' printeradmin.desktop
  # fix permissions of files
  chmod +rX -R $startdir/pkg/usr
   
}

openoffice.install

# arg 1:  the new package version
post_install() {
cat << EOF  
==> For more information about OpenOffice. Please have a look at:
==> 'http://wiki2.archlinux.org/index.php/OpenOffice' 
EOF

# make install complete
  cd /opt/openoffice2/program
  ./unopkg add --shared
#  ./configimport --spool
# make gnome happy
  /usr/bin/update-desktop-database > /dev/null 2>&1
}

pre_upgrade() {
  #safe old dictionary.lst
  mv /opt/openoffice2/share/dict/ooo/dictionary.lst /opt/openoffice2/share/dict/ooo/dictionary.old
}
# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  post_install $1 
  # fix dictionary.lst
  rm /opt/openoffice2/share/dict/ooo/dictionary.lst
  mv /opt/openoffice2/share/dict/ooo/dictionary.old /opt/openoffice2/share/dict/ooo/dictionary.lst
}

pre_remove () {
# make uninstall complete
  rm -r /opt/openoffice2/share/{uno_packages,registry} 
}

post_remove () {
# make gnome happy
  /usr/bin/update-desktop-database > /dev/null 2>&1
}

op=$1
shift

$op $*

Offline

#2 2005-09-29 21:27:17

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [new] openoffice.org RC1

Flag the package out of date, if it hasn't been done.

Offline

#3 2005-09-29 21:52:08

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [new] openoffice.org RC1

I so want libtool slay and gcc4 done so we can get at this stuff!

Offline

#4 2005-09-29 22:13:27

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [new] openoffice.org RC1

dibblethewrecker wrote:

I so want libtool slay and gcc4 done so we can get at this stuff!

It (testing->current) will happen next week according to a post by JGC.

Offline

#5 2005-09-29 22:22:21

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [new] openoffice.org RC1

lol openoffice2 2.0.0rc1-1 just hit unstable repo.

Offline

#6 2005-09-29 22:31:18

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [new] openoffice.org RC1

Snowman wrote:
dibblethewrecker wrote:

I so want libtool slay and gcc4 done so we can get at this stuff!

It (testing->current) will happen next week according to a post by JGC.

Where/when?

...and re: second post big_smile

Offline

#7 2005-09-29 23:08:39

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: [new] openoffice.org RC1

Snowman wrote:

openoffice2 2.0.0rc1-1 just hit unstable repo.

Nice!! That was pretty fast actually big_smile

Offline

#8 2005-09-29 23:12:27

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: [new] openoffice.org RC1

Snowman wrote:
dibblethewrecker wrote:

I so want libtool slay and gcc4 done so we can get at this stuff!

It (testing->current) will happen next week according to a post by JGC.

At that time, will all apps be build agains gcc4??? (as this seems quite a lot of work)

Offline

#9 2005-09-30 01:04:34

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [new] openoffice.org RC1

yes, all apps will be built against gcc4 (otherwise pkg would stay in testing)
Dibble: Read http://bbs.archlinux.org/viewtopic.php? … ht=#115498

Offline

Board footer

Powered by FluxBB