2011-06-27 22:55:01 +02:00
|
|
|
# Description: full featured cross platform office suite (binary)
|
2020-06-01 15:45:48 +00:00
|
|
|
# URL: https://www.libreoffice.org
|
2014-06-29 20:30:56 +02:00
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
|
|
# Packager: Bartlomiej Palmowski, rotwang at crux dot org dot pl
|
2020-10-16 10:19:01 +02:00
|
|
|
# Depends on: avahi cups dbus-glib desktop-file-utils glu gtk gtk3 krb5 shared-mime-info xorg-libxaw xorg-libxi
|
2011-06-27 22:55:01 +02:00
|
|
|
|
2019-08-07 20:00:08 +10:00
|
|
|
name=libreoffice-bin
|
2020-09-11 10:19:29 +02:00
|
|
|
version=6.4.6
|
2011-06-27 22:55:01 +02:00
|
|
|
release=1
|
2019-08-07 20:00:08 +10:00
|
|
|
source=(http://download.documentfoundation.org/libreoffice/stable/$version/rpm/x86_64/LibreOffice_${version}_Linux_x86-64_rpm.tar.gz)
|
2014-11-16 18:38:49 +01:00
|
|
|
|
2011-06-27 22:55:01 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
local workd="$SRC/tmp_work"
|
|
|
|
mkdir $workd
|
|
|
|
|
2013-06-22 15:27:58 +02:00
|
|
|
cd LibreOffice_${version}*/RPMS
|
2011-06-27 22:55:01 +02:00
|
|
|
for rpm in *.rpm; do
|
|
|
|
bsdtar -p -o -C $workd -xf $rpm
|
|
|
|
done
|
2014-02-15 21:05:56 +01:00
|
|
|
|
2011-06-27 22:55:01 +02:00
|
|
|
bsdtar -p -o -C $workd -xf \
|
2019-08-07 20:00:08 +10:00
|
|
|
libreoffice${version%.*}-freedesktop-menus-${version%.*}*.noarch.rpm
|
2011-06-27 22:55:01 +02:00
|
|
|
|
|
|
|
cd $workd
|
2019-08-07 20:00:08 +10:00
|
|
|
mkdir -p $PKG/usr/lib/libreoffice
|
|
|
|
mv opt/libreoffice*/* $PKG/usr/lib/libreoffice
|
2011-06-27 22:55:01 +02:00
|
|
|
|
2019-08-07 20:00:08 +10:00
|
|
|
cd $PKG/usr/lib/libreoffice
|
2011-06-27 22:55:01 +02:00
|
|
|
ln -sf basis${version%.*} basis-link
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/bin
|
2017-01-10 02:33:32 +01:00
|
|
|
local programs=(sbase scalc sdraw simpress smath soffice swriter)
|
2011-06-27 22:55:01 +02:00
|
|
|
for program in ${programs[@]}; do
|
2019-08-07 20:00:08 +10:00
|
|
|
ln -sf /usr/lib/libreoffice/program/$program $PKG/usr/bin/$program
|
2011-06-27 22:55:01 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/share/applications
|
2019-08-07 20:00:08 +10:00
|
|
|
cd $PKG/usr/lib/libreoffice/share/xdg/
|
2014-02-15 21:05:56 +01:00
|
|
|
|
2011-06-27 22:55:01 +02:00
|
|
|
for desktop in *.desktop; do
|
2011-11-28 00:54:41 +01:00
|
|
|
sed -i '/^Exec=/s/libreoffice[^ ]*/soffice/' $desktop
|
2019-09-19 16:09:29 +02:00
|
|
|
ln -sf /usr/lib/libreoffice/share/xdg/$desktop $PKG/usr/share/applications/$desktop
|
2011-06-27 22:55:01 +02:00
|
|
|
done
|
2014-02-15 21:05:56 +01:00
|
|
|
|
2011-06-27 22:55:01 +02:00
|
|
|
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
|
2019-02-11 21:07:34 +01:00
|
|
|
|
|
|
|
# prevent crashing because of absent wayland bindings
|
|
|
|
sed -i '$i export SAL_USE_VCLPLUGIN=gen' $PKG/usr/lib/libreoffice/program/soffice
|
2011-06-27 22:55:01 +02:00
|
|
|
}
|