# $Id: $ # Description: A full featured cross platform office suite (binary) # URL: http://www.openoffice.org/ # Maintainer: Shawn McDermott # Depends on: x11, rpm2targz # Nice to have: j2re name=ooobeta version=1.9.125 release=2 source=(http://openoffice.mirrors.tds.net/pub/openoffice/stable/2.0beta2/OOo_2.0beta2_LinuxIntel_install.tar.gz) build() { cd OOo2.0beta2_native_packed_en-US/RPMS rpm2targz *.rpm \ desktop-integration/openoffice.org-freedesktop-menus-$version-1.noarch.rpm for i in *.tar.gz do tar xzf $i -C $PKG done for i in desktop-integration/*.tar.gz do tar xzf $i -C $PKG done install -d $PKG/usr/lib mv $PKG/opt/openoffice.org${version} $PKG/usr/lib/$name rm -f $PKG/usr/lib/$name/[A-Z]* rm -rf $PKG/usr/lib/$name/share/template/en-US/wizard/letter # make symlinks for each app in /usr/bin install -d $PKG/usr/bin for i in sbase scalc sdraw simpress smath soffice spadmin swriter do ln -sf /usr/lib/$name/program/$i $PKG/usr/bin/$i done # replace the .desktop symlinks, they point to the wrong places (cd $PKG/usr/share/applications for i in *.desktop do ln -sf /usr/lib/$name/share/xdg/`echo $i | sed -e "s/openoffice.org-1.9-//"` $i done) # fix the paths in the openoffice.org-1.9 and # openoffice.org-1.9-printeradmin executables sed -i -e "s|/etc/openoffice\.org-1.9|/usr/lib/$name|g" \ $PKG/usr/bin/openoffice.org-1.9{,-printeradmin} # fix the soffice symlink ln -sf /usr/lib/$name/program/soffice $PKG/usr/bin/soffice chown -R root:root $PKG }