libreoffice-bin: dropped
This commit is contained in:
parent
f933980230
commit
e69382767d
File diff suppressed because it is too large
Load Diff
@ -1,5 +0,0 @@
|
||||
untrusted comment: verify with /etc/ports/jmq.pub
|
||||
RWTTPlFarK9CxNFICFN4wJheOikO1dLJgDwj5/VMGW3vo55vXFyMaPZCjPIMyLm8soAhB8z9TG5xm0odYpHSKbNitxwDP4tfowc=
|
||||
SHA256 (Pkgfile) = f54fa6e89731fd6a72e772a4d92b8ae68f13b2faa388d6ffa6a9ced24d862da6
|
||||
SHA256 (.footprint) = d9a0721fabb4ce7bd302a95dcc85c137de6487143a41e4683d385b74e0ab690c
|
||||
SHA256 (LibreOffice_7.6.4_Linux_x86-64_rpm.tar.gz) = 8bdff86976003dd0ff5e70432428d018e41f279f69050307a3d6927a40df0def
|
@ -1,54 +0,0 @@
|
||||
# Description: minimalist binary installation of the powerful office suite
|
||||
# URL: https://www.libreoffice.org/
|
||||
# Maintainer: John McQuah, jmcquah at disroot dot org
|
||||
# Depends on: gtk3 freetype avahi cups nss nspr
|
||||
# Optional: qt5 sane
|
||||
|
||||
name=libreoffice-bin
|
||||
version=7.6.4
|
||||
release=1
|
||||
source=(https://download.documentfoundation.org/${name%-bin}/stable/$version/rpm/x86_64/LibreOffice_${version}_Linux_x86-64_rpm.tar.gz)
|
||||
|
||||
build() {
|
||||
cd LibreOffice*/RPMS
|
||||
|
||||
for RPM in *.rpm; do
|
||||
case $RPM in
|
||||
*-firebird-*) ;;
|
||||
*-report-builder-*) ;;
|
||||
*-mediawiki-*) ;;
|
||||
*-onlineupdate-*) ;;
|
||||
*-kde-integration-*) ;;
|
||||
*-postgresql-*) ;;
|
||||
*-nlpsolver-*) ;;
|
||||
*-ooofonts-*) ;;
|
||||
*-ooolinguistic-*) ;;
|
||||
*-ogltrans-*) ;;
|
||||
*-javascript-*) ;;
|
||||
*-beanshell-*) ;;
|
||||
*-dict-*)
|
||||
[[ $RPM =~ "-dict-${LANG:0:2}" ]] && bsdtar -p -C $PKG -xf "$RPM"
|
||||
;;
|
||||
*)
|
||||
bsdtar -p -C $PKG -xf "$RPM"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
mv "$PKG/opt" "$PKG/usr/lib"
|
||||
find "$PKG" -type d -perm 700 -exec chmod 755 {} +
|
||||
|
||||
rm -f "$PKG/usr/bin/libreoffice7.6"
|
||||
ln -s ../lib/libreoffice7.6/program/soffice "$PKG/usr/bin/libreoffice7.6"
|
||||
rm -f "$PKG"/usr/share/applications/*.desktop
|
||||
cd "$PKG"/usr/share/applications
|
||||
for APP in ../../lib/libreoffice7.6/share/xdg/*.desktop; do
|
||||
ln -sf $APP libreoffice7.6-${APP##*/}
|
||||
done
|
||||
|
||||
# clean up junk files
|
||||
rm -rf "$PKG"/usr/lib/libreoffice7.6/readmes
|
||||
find "$PKG" \( -name "README*" -o -name "LICENSE*" -o -name "NOTICE*" \
|
||||
-o -name "COPYING*" \) -delete
|
||||
find "$PKG" -name "wininst*.exe" -delete
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
# libreoffice-bin README.md
|
||||
|
||||
This port is provided as a convenience for users who need to open an office document quickly
|
||||
and cannot wait for a massive project to be compiled. All the needed libraries aside from
|
||||
gtk3 and freetype are bundled in the tarball. These libraries include duplicates of packages
|
||||
you might already have installed, such as lcms2 and libxml2. The contrib/libreoffice
|
||||
port creates a less-redundant footprint, and binaries that respect your pkgmk optimization
|
||||
settings, at the expense of a bigger dependency tree and longer compilation time.
|
||||
|
||||
## Extensions not included
|
||||
|
||||
Some of the RPMs in the tarball are omitted from the installation, for the sake of a lighter
|
||||
footprint. If you want such features as mediawiki-publisher or nlpsolver, you can simply delete
|
||||
those tests from the Pkgfile and run ``pkgmk -is``. Better yet, create your own port that depends
|
||||
on libreoffice-bin and uses the same source array, but installs only the desired extensions.
|
||||
|
||||
## Selective installation of dictionaries
|
||||
|
||||
The Pkgfile will use the value of $LANG to determine which dictionaries, if any, to install.
|
||||
* If your value of $LANG does *not* begin with {en, es, fr}, then none of the dictionaries in the
|
||||
upstream tarball will be unpacked. In that case you are encouraged to create a new port that
|
||||
downloads the appropriate language pack from libreoffice.org and uses the same installation
|
||||
directory (/usr/lib/libreoffice7.3).
|
||||
* If your value of $LANG *does* begin with {en, es, fr}, then that dictionary in the upstream
|
||||
tarball will be unpacked, and you will get a footprint mismatch, warning about NEW files.
|
||||
Setting ``PKGMK_IGNORE_NEW=yes`` should be enough to allow the installation to proceed.
|
Loading…
Reference in New Issue
Block a user