29 lines
796 B
Plaintext
29 lines
796 B
Plaintext
# Description: A full featured cross platform office suite (binary)
|
|
# URL: http://www.openoffice.org
|
|
# Maintainer: Simone Rota, sip at varlock dot com
|
|
# Packager: Simone Rota, sip at varlock dot com
|
|
# Depends on: x11, rpm2targz
|
|
|
|
name=openoffice
|
|
version=2.0.1
|
|
release=1
|
|
source=(http://na.mirror.garr.it/mirrors/openoffice/stable/$version/OOo_${version}_LinuxIntel_install.tar.gz)
|
|
|
|
build() {
|
|
cd OO*/RPMS
|
|
for f in *.rpm; do rpm2targz $f; done
|
|
for f in *.tar.gz; do tar xvfz $f -C $PKG; done
|
|
|
|
rm -rf $PKG/usr/*
|
|
mkdir -p $PKG/usr/lib/openoffice
|
|
mv $PKG/opt/openoffice*/* $PKG/usr/lib/openoffice
|
|
|
|
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
|
|
|
|
rm -r $PKG/opt
|
|
chown root.root $PKG -R
|
|
|
|
}
|