# Description: Full featured cross platform office suite for russian (binary) # URL: https://www.libreoffice.org # Maintainer: Roman Oreshnikov, r dot oreshnikov at gmail dot com # Depends on: avahi cups desktop-file-utils gst-plugins-base gtk3 jdk8-bin firefox-esr # Post-install: yes name=libreoffice-ru version=24.2.2 release=1 Url=http://libreoffice-mirror.rbc.ru/pub/libreoffice/libreoffice/stable/$version/rpm/x86_64 LOR=libreoffice${version%.[0-9]*} source=( $Url/LibreOffice_${version}_Linux_x86-64_rpm.tar.gz $Url/LibreOffice_${version}_Linux_x86-64_rpm_langpack_ru.tar.gz ) build() { rm LibreOffice*/RPMS/*-{beanshell,es,firebird,fr,integration,librelogo,mediawiki,nlpsolver,onlineupdate,ooofonts,python,pyuno,sdbc}-* for rpm in LibreOffice*/RPMS/*.rpm; do bsdtar -p -o -C $PKG -xf $rpm done find $PKG \( \ -iname 'readme*' -o \ -iname 'credits*' -o \ -iname 'changelog*' -o \ -name 'COPY*' -o \ -name 'LICENSE*' -o \ -name NOTICE -o \ -name WordNet_license.txt -o \ -name 'example_*' -o \ -name license.txt -o \ -name package.txt \ \) -delete find $PKG/opt/$LOR/help/media/icon-themes/cmd -type d \ ! -name cmd ! -name 32 ! -name ru | xargs rm -r rm -r $PKG/opt/$LOR/program/wizards D=$PKG/opt/$LOR/share rm -r $D/{Scripts,basic,xpdfimport/poppler_data} find $D/autocorr -name "*.dat" ! -name "*ru*" ! -name "*[dh]sb*" \ ! -name "*US*" -delete rm $D/extensions/dict-en/{Eng,aff,en_{AU,CA,ZA},pac}* find $D/extensions/dict-{en,ru} -name "*.properties" \ ! -name "*_US.*" ! -iname "*_ru.*" -delete sed -i 's%\(\).*\(\)%\1en-GB en-US\2%' \ $D/extensions/dict-en/Linguistic.xcu sed -ni '/icon>/d;/png/d;/