UmVirt LFS Package info

DB commit: c78e95157185199cceff370fa5b5f1dd2a1be2fa
APP commit: cac3f2066a9a05955b29d720b9b9b14f534d21c2

libreoffice

LibreOffice is a full-featured office suite. It is largely compatible with Microsoft Office and is descended from OpenOffice.org.

Package info

Codename: libreoffice
Source file: libreoffice-6.1.0.3.tar.xz
Source directory: libreoffice-6.1.0.3
Package URL: https://umvirt.com/linux/downloads/0.1/packages/l/libreoffice-6.1.0.3.tar.xz
Package md5-checksum URL: https://umvirt.com/linux/downloads/0.1/packages/l/libreoffice-6.1.0.3.tar.xz.md5sum
Dependances: wget, mesa, curl, libxml2, which, libjpeg-turbo, harfbuzz, icu, gtk3, libxslt, unzip, dbus-glib, zip, gst-plugins-base, glu, nss, lcms2, perl-Archive-Zip, cupsd, poppler, libboost, libatomic_ops, python-lxml, neon, apache-ant, apr, clucene, graphite2, openldap-client, postgresql-client, unixODBC, redland, sudo.
Dependance of: *** NO PACKAGES FOUND ***
Patches: libreoffice-6.1.4.2-jdk11_fixes-1.patch.
Addons: libreoffice-dictionaries-6.1.0.3.tar.xz, libreoffice-help-6.1.0.3.tar.xz, libreoffice-translations-6.1.0.3.tar.xz, libreoffice-extratars-6.1.0.3.tar.
Nestings *** NO NESTINGS FOUND ***
Unpack script:
tar -xf libreoffice-6.1.0.3.tar.xz --no-overwrite-dir

Configuration script:
export LO_PREFIX=/opt/libreooffice-6.1.0.3

install -dm755 external/tarballs &&
ln -sv ../../../libreoffice-dictionaries-6.1.0.3.tar.xz external/tarballs/ &&
ln -sv ../../../libreoffice-help-6.1.0.3.tar.xz         external/tarballs/

ln -sv ../../../libreoffice-translations-6.1.0.3.tar.xz external/tarballs/

tar -xf ../libreoffice-extratars-6.1.0.3.tar

cp -v libreoffice-extratars-6.1.0.3/* external/tarballs/

sed -e "/gzip -f/d"   \
    -e "s|.1.gz|.1|g" \
    -i bin/distro-install-desktop-integration &&

sed -e "/distro-install-file-lists/d" -i Makefile.in &&

./autogen.sh --prefix=$LO_PREFIX         \
             --sysconfdir=/etc           \
             --with-vendor=BLFS          \
             --with-lang='ru fr en-GB'   \
             --with-help                 \
             --with-myspell-dicts        \
             --with-alloc=system         \
             --without-junit             \
             --without-system-dicts      \
             --disable-dconf             \
             --disable-odk               \
             --enable-release-build=yes  \
             --enable-python=system      \
             --with-system-apr           \
             --with-system-boost         \
             --with-system-cairo         \
             --with-system-clucene       \
             --with-system-curl          \
             --with-system-expat         \
             --with-system-graphite      \
             --with-system-harfbuzz      \
             --with-system-icu           \
             --with-system-jpeg          \
             --with-system-lcms2         \
             --with-system-libatomic_ops \
             --with-system-libpng        \
             --with-system-libxml        \
             --with-system-neon          \
             --with-system-nss           \
             --with-system-odbc          \
             --with-system-openldap      \
             --with-system-openssl       \
             --with-system-poppler       \
             --with-system-postgresql    \
             --with-system-redland       \
             --with-system-serf          \
             --with-system-zlib          \
             --with-jdk-home=/opt/jdk

Build script:
CPPFLAGS='-DU_USING_ICU_NAMESPACE=1' make build-nocheck

Install script:
export LO_PREFIX=/opt/libreooffice-6.1.0.3

make distro-pack-install

if [ "\$LO_PREFIX" != "/usr" ]; then

  # This symlink is necessary for the desktop menu entries
  ln -svf \$LO_PREFIX/lib/libreoffice/program/soffice /usr/bin/libreoffice &&

  # Set up a generic location independent of version number
  ln -sfv \$LO_PREFIX /opt/libreoffice 

  # Icons
  mkdir -vp /usr/share/pixmaps
  for i in \$LO_PREFIX/share/icons/hicolor/32x32/apps/*; do
    ln -svf \$i /usr/share/pixmaps
  done &&

  # Desktop menu entries
  for i in \$LO_PREFIX/lib/libreoffice/share/xdg/*; do
    ln -svf \$i /usr/share/applications/libreoffice-\$(basename \$i)
  done &&

  # Man pages
  for i in \$LO_PREFIX/share/man/man1/*; do
    ln -svf \$i /usr/share/man/man1/
  done

  unset i
fi

update-desktop-database


Comments:

  1. Compilation from maintainer user account (sudo without password). Compilation from root account is prohibited.
  2. Compilation take long time.