openoffice dropped in favour of libreoffice
This commit is contained in:
parent
f4983643f7
commit
313e327d80
6884
libreoffice/.footprint
Normal file
6884
libreoffice/.footprint
Normal file
File diff suppressed because it is too large
Load Diff
1
libreoffice/.md5sum
Normal file
1
libreoffice/.md5sum
Normal file
@ -0,0 +1 @@
|
|||||||
|
236aa36128f195d22cba23cdd8d64c1c LibO_3.4.0_Linux_x86_install-rpm_en-US.tar.gz
|
54
libreoffice/Pkgfile
Normal file
54
libreoffice/Pkgfile
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# Description: full featured cross platform office suite (binary)
|
||||||
|
# URL: http://www.libreoffice.org
|
||||||
|
# Maintainer: Bartlomiej Palmowski, rotwang at crux dot org dot pl
|
||||||
|
# Depends on: mesa3d xorg-libxaw xorg-libxcursor xorg-libxft xorg-libxinerama xorg-libxi xorg-libxrandr
|
||||||
|
|
||||||
|
name=libreoffice
|
||||||
|
version=3.4.0
|
||||||
|
release=1
|
||||||
|
source=(http://ftp.tu-chemnitz.de/pub/tdf/$name/stable/$version/rpm/x86/LibO_${version}_Linux_x86_install-rpm_en-US.tar.gz)
|
||||||
|
#source=(http://ftp.tu-chemnitz.de/pub/tdf/$name/stable/$version/rpm/x86_64/LibO_${version}_Linux_x86-64_install-rpm_en-US.tar.gz)
|
||||||
|
|
||||||
|
build() {
|
||||||
|
local workd="$SRC/tmp_work"
|
||||||
|
mkdir $workd
|
||||||
|
|
||||||
|
cd LibO*/RPMS
|
||||||
|
for rpm in *.rpm; do
|
||||||
|
bsdtar -p -o -C $workd -xf $rpm
|
||||||
|
done
|
||||||
|
cd desktop-integration
|
||||||
|
bsdtar -p -o -C $workd -xf \
|
||||||
|
$name${version%.*}-freedesktop-menus-${version%.*}-*.noarch.rpm
|
||||||
|
|
||||||
|
cd $workd
|
||||||
|
mkdir -p $PKG/usr/lib/$name
|
||||||
|
mv opt/$name*/* $PKG/usr/lib/$name
|
||||||
|
|
||||||
|
cd $PKG/usr/lib/$name
|
||||||
|
ln -sf basis${version%.*} basis-link
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/bin
|
||||||
|
local programs=(sbase scalc sdraw simpress smath soffice spadmin swriter)
|
||||||
|
for program in ${programs[@]}; do
|
||||||
|
ln -sf /usr/lib/$name/program/$program $PKG/usr/bin/$program
|
||||||
|
done
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/share/applications
|
||||||
|
cd $PKG/usr/lib/$name/share/xdg/
|
||||||
|
sed -i '/^Exec=/s/libreoffice-printeradmin/spadmin/' printeradmin.desktop
|
||||||
|
for desktop in *.desktop; do
|
||||||
|
sed -i '/^Exec=/s/libreoffice/soffice/' $desktop
|
||||||
|
ln -sf /usr/lib/$name/share/xdg/$desktop $PKG/usr/share/applications/$desktop
|
||||||
|
done
|
||||||
|
mv $workd/usr/share/{mime,icons} $PKG/usr/share
|
||||||
|
|
||||||
|
find $PKG \(\
|
||||||
|
-iname '*readme*' -o \
|
||||||
|
-iname '*changelog*' -o \
|
||||||
|
-name '*TODO*' -o \
|
||||||
|
-iname '*news*' -o \
|
||||||
|
-iname '*license*' -o \
|
||||||
|
-iname '*credits*' \
|
||||||
|
\) -exec rm -rf '{}' \; || true
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
@ -1 +0,0 @@
|
|||||||
b23dda259909373746d33d9844dc64f5 OOo_3.3.0_Linux_x86_install-rpm_en-US.tar.gz
|
|
@ -1,60 +0,0 @@
|
|||||||
# Description: full featured cross platform office suite (binary)
|
|
||||||
# URL: http://www.openoffice.org
|
|
||||||
# Maintainer: Bartlomiej Palmowski, rotwang at crux dot org dot pl
|
|
||||||
# Packager: Simone Rota, sip at crux dot nu
|
|
||||||
# Depends on: mesa3d xorg-libxaw xorg-libxcursor xorg-libxft xorg-libxinerama xorg-libxi xorg-libxrandr
|
|
||||||
|
|
||||||
name=openoffice
|
|
||||||
version=3.3.0
|
|
||||||
release=1
|
|
||||||
source=(ftp://ftp.fu-berlin.de/unix/X11/apps/$name/stable/$version/OOo_${version}_Linux_x86_install-rpm_en-US.tar.gz)
|
|
||||||
#source=(http://spout.ussg.indiana.edu/openoffice/stable/3.3.0/OOo_3.3.0_Linux_x86_install-rpm-wJRE_en-US.tar.gz)
|
|
||||||
|
|
||||||
build() {
|
|
||||||
mkdir OOo_work
|
|
||||||
cd OOO*/RPMS
|
|
||||||
|
|
||||||
for i in *.rpm; do
|
|
||||||
bsdtar -p -o -C $SRC/OOo_work -xf $i
|
|
||||||
done
|
|
||||||
|
|
||||||
cd $SRC/OOo_work
|
|
||||||
mkdir -p $PKG/usr/lib/openoffice
|
|
||||||
mv opt/openoffice*/* $PKG/usr/lib/openoffice
|
|
||||||
cd $PKG/usr/lib/openoffice
|
|
||||||
ln -sf basis${version%.*} basis-link
|
|
||||||
|
|
||||||
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
|
|
||||||
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
|
|
||||||
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
|
|
||||||
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
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user