You are not logged in.
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
Flag the package out of date, if it hasn't been done.
Offline
I so want libtool slay and gcc4 done so we can get at this stuff!
Offline
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
openoffice2 2.0.0rc1-1 just hit unstable repo.
Offline
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
Offline
openoffice2 2.0.0rc1-1 just hit unstable repo.
Nice!! That was pretty fast actually
Offline
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
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