contrib/openoffice/Pkgfile

60 lines
1.9 KiB
Plaintext
Raw Normal View History

# Description: full featured cross platform office suite (binary)
2009-01-11 12:14:57 +01:00
# URL: http://www.openoffice.org
# Maintainer: Bartlomiej Palmowski, rotwang at crux dot org dot pl
# Packager: Simone Rota, sip at crux dot nu
2010-04-16 09:45:09 +02:00
# Depends on: mesa3d xorg-libxaw xorg-libxcursor xorg-libxft xorg-libxinerama xorg-libxi xorg-libxrandr
2009-01-11 12:14:57 +01:00
name=openoffice
2010-04-16 09:45:09 +02:00
version=3.2.0
release=1
2010-04-16 09:45:09 +02:00
source=(http://spout.ussg.indiana.edu/openoffice/stable/$version/OOo_${version}_LinuxIntel_install_en-US.tar.gz)
2009-01-11 12:14:57 +01:00
build() {
2010-04-16 09:45:09 +02:00
mkdir OOo_work
cd OOO*/RPMS
2010-04-16 09:45:09 +02:00
2009-06-16 20:37:46 +02:00
for i in *.rpm; do
2010-04-16 09:45:09 +02:00
bsdtar -p -o -C $SRC/OOo_work -xf $i
2009-06-16 20:37:46 +02:00
done
2009-01-11 12:14:57 +01:00
2010-04-16 09:45:09 +02:00
cd $SRC/OOo_work
2009-06-16 20:40:20 +02:00
mkdir -p $PKG/usr/lib/openoffice
mv opt/openoffice*/* $PKG/usr/lib/openoffice
cd $PKG/usr/lib/openoffice
2010-04-16 09:45:09 +02:00
ln -sf basis${version%.*} basis-link
2009-06-16 20:40:20 +02:00
mkdir -p $PKG/usr/bin
ln -sf /usr/lib/openoffice/program/soffice $PKG/usr/bin/soffice
ln -sf /usr/lib/openoffice/program/spadmin $PKG/usr/bin/spadmin
# install fancy desktop files
mkdir -p $PKG/usr/share/applications
cd share/xdg/
for i in *.desktop; do
2010-04-16 09:45:09 +02:00
sed -i '/Exec/s/openoffice\.org3/soffice /' $i
cp $i $PKG/usr/share/applications/
done
sed '/Exec/s/openoffice\.org3-printeradmin/spadmin/' printeradmin.desktop > $PKG/usr/share/applications/printeradmin.desktop
# icons
cd $SRC/OOO*/RPMS/desktop-integration
2010-04-16 09:45:09 +02:00
bsdtar -p -o -xf openoffice.org3.?-freedesktop-menus-*.noarch.rpm
mkdir -p $PKG/usr/share/mime
cp -r usr/share/mime/* $PKG/usr/share/mime
mkdir -p $PKG/usr/share/icons
cp -r usr/share/icons/hicolor $PKG/usr/share/icons
2010-04-16 09:45:09 +02:00
cp -r usr/share/icons/locolor $PKG/usr/share/icons
# remove junk files and dont care about return values
{
find $PKG \(\
-iname '*readme*' -o \
-iname '*changelog*' -o \
-name '*TODO*' -o \
-iname '*news*' -o \
-iname '*license*' -o \
-iname '*credits*' \
\) -exec rm -rf '{}' \;
} || true
2009-01-11 12:14:57 +01:00
}