2022-08-20 10:02:40 -04:00
|
|
|
# Description: a powerful office suite, compiled upstream
|
|
|
|
# URL: https://www.libreoffice.org/
|
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
2022-08-28 07:06:36 -04:00
|
|
|
# Depends on: gtk3 freetype avahi cups nss nspr
|
|
|
|
# Optional: qt5 sane
|
2022-08-20 10:02:40 -04:00
|
|
|
|
|
|
|
name=libreoffice-bin
|
|
|
|
Name=LibreOffice
|
2022-09-26 11:46:10 -04:00
|
|
|
version=7.3.6
|
2022-08-20 10:02:40 -04:00
|
|
|
release=1
|
2022-09-26 11:46:10 -04:00
|
|
|
source=(https://download.documentfoundation.org/${name%-bin}/stable/$version/rpm/x86_64/${Name}_${version}_Linux_x86-64_rpm.tar.gz)
|
2022-08-20 10:02:40 -04:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${Name}*/RPMS
|
|
|
|
|
|
|
|
for RPM in *.rpm; do
|
|
|
|
[[ $RPM =~ "-firebird-" ]] && continue
|
|
|
|
[[ $RPM =~ "-report-builder-" ]] && continue
|
|
|
|
[[ $RPM =~ "-mediawiki-" ]] && continue
|
2022-08-24 10:18:48 -04:00
|
|
|
[[ $RPM =~ "-mediawiki-" ]] && continue
|
2022-08-20 10:02:40 -04:00
|
|
|
[[ $RPM =~ "-onlineupdate-" ]] && continue
|
2022-08-24 10:18:48 -04:00
|
|
|
[[ $RPM =~ "-kde-integration-" ]] && continue
|
2022-08-20 10:02:40 -04:00
|
|
|
[[ $RPM =~ "-postgresql-" ]] && continue
|
|
|
|
[[ $RPM =~ "-nlpsolver-" ]] && continue
|
|
|
|
[[ $RPM =~ "-ooofonts-" ]] && continue
|
|
|
|
[[ $RPM =~ "-ogltrans-" ]] && continue
|
|
|
|
[[ $RPM =~ "-javascript-" ]] && continue
|
2022-08-24 10:18:48 -04:00
|
|
|
[[ $RPM =~ "-beanshell-" ]] && continue
|
2022-08-20 10:02:40 -04:00
|
|
|
[[ $RPM =~ "-dict-" ]] && [[ ! $RPM =~ "-dict-${LANG:0:2}" ]] && continue
|
|
|
|
bsdtar -p -C $PKG -xf "$RPM"
|
|
|
|
done
|
|
|
|
|
|
|
|
mv "$PKG/opt" "$PKG/usr/lib"
|
|
|
|
find "$PKG" -type d -perm 700 -exec chmod 755 {} +
|
|
|
|
|
|
|
|
mkdir -p "$PKG/usr/bin" && cd "$PKG/usr/bin"
|
|
|
|
rm -f libreoffice7.3
|
|
|
|
ln -sf ../lib/libreoffice7.3/program/soffice soffice
|
|
|
|
ln -sf ../lib/libreoffice7.3/program/soffice libreoffice
|
|
|
|
rm -f "$PKG"/usr/share/applications/*.desktop
|
|
|
|
cd "$PKG"/usr/share/applications
|
|
|
|
for APP in ../../lib/libreoffice7.3/share/xdg/*.desktop; do
|
|
|
|
ln -sf $APP libreoffice7.3-${APP##*/}
|
|
|
|
done
|
|
|
|
|
|
|
|
# clean up junk files
|
|
|
|
rm -rf "$PKG"/usr/lib/libreoffice7.3/readmes
|
|
|
|
find "$PKG" \( -name "README*" -o -name "LICENSE*" -o -name "NOTICE*" -o -name "COPYING*" \) -exec rm {} +
|
|
|
|
find "$PKG" -name "wininst*.exe" -exec rm {} +
|
|
|
|
}
|