UmVirt LFS Package info

DB commit: 57bed5a54ba91b88b24a1c8eb97bd083dbf72f0d
APP commit: 634ff2193dea70dde75eb1916d758638b7417453

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-7.6.0.3.tar.xz
Source directory: libreoffice-7.6.0.3
Package URL: https://umvirt.com/linux/downloads/0.2/packages/l/libreoffice-7.6.0.3.tar.xz
Package md5-checksum URL: https://umvirt.com/linux/downloads/0.2/packages/l/libreoffice-7.6.0.3.tar.xz.md5sum
Dependances: libxml2, icu, libxslt, unzip, zip, curl, harfbuzz, llvm, mesa, libepoxy, graphite2, libjpeg-turbo, glu, tiff, gtk3, dbus-glib, desktop-file-utils, OpenLDAP-client, librsvg, gst-plugins-base, libwebp, lcms2, which, nss, boost, poppler, cups, gpgme, python3-lxml, mariadb-client, unixODBC, postgresql-client, perl-Archive-Zip, clucene, glm, libatomic_ops, redland.
Dependance of: *** NO PACKAGES FOUND ***
Patches: *** NO PATCHES FOUND ***
Addons: libreoffice-dictionaries-7.6.0.3.tar.xz, libreoffice-help-7.6.0.3.tar.xz, libreoffice-translations-7.6.0.3.tar.xz, libreoffice-tarballs-7.6.0.3.tar.
Nestings *** NO NESTINGS FOUND ***
Unpack script:
tar -xf libreoffice-7.6.0.3.tar.xz --no-overwrite-dir

Configuration script:
install -dm755 external/tarballs &&
ln -sv ../../../libreoffice-dictionaries-7.6.0.3.tar.xz external/tarballs/ &&
ln -sv ../../../libreoffice-help-7.6.0.3.tar.xz         external/tarballs/ &&
ln -sv ../../../libreoffice-translations-7.6.0.3.tar.xz external/tarballs/

ln -sv src/libreoffice-help-7.6.0.3/helpcontent2/ &&
ln -sv src/libreoffice-dictionaries-7.6.0.3/dictionaries/ &&
ln -sv src/libreoffice-translations-7.6.0.3/translations/

export LO_PREFIX=/opt/libreoffice-7.6.0.3

case $(uname -m) in
   i?86) sed /-Os/d -i solenv/gbuild/platform/LINUX_INTEL_GCC.mk ;;
esac

sed -i '940i #if HAVE_FEATURE_JAVA' cui/source/options/optjava.cxx &&
sed -i '966i #endif'                cui/source/options/optjava.cxx

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='en-GB ru'      \
             --with-help                 \
             --with-myspell-dicts        \
             --without-junit             \
             --without-system-dicts      \
             --disable-dconf             \
             --disable-odk               \
             --enable-release-build=yes  \
             --enable-python=system      \
             --without-java              \
             --with-system-clucene       \
             --with-system-curl          \
             --with-system-epoxy         \
             --with-system-expat         \
             --with-system-glm           \
             --with-system-gpgmepp       \
             --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-nss           \
             --with-system-odbc          \
             --with-system-openldap      \
             --with-system-openssl       \
             --with-system-poppler       \
             --with-system-postgresql    \
             --with-system-redland       \
             --with-system-libtiff       \
             --with-system-libwebp       \
             --with-system-zlib          \
             --disable-gstreamer-1-0


tar -xf ../libreoffice-tarballs-7.6.0.3.tar
mv -v libreoffice-tarballs-7.6.0.3/* external/tarballs

Build script:
make build

Install script:
make distro-pack-install

export LO_PREFIX=/opt/libreoffice-7.6.0.3

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 libreoffice-7.6.0.3 /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