UmVirt LFS Package info

DB commit: f64c98382982c764c3ba140bfcbbc73d93096acd
APP commit: e09dc78145b10de9481608254eb2ac99efd0068b
[ BASH | XML | JSON ]

libreoffice

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

Package info

Template:
Codename: libreoffice
Source file: libreoffice-25.2.1.2.tar.xz
Source file size: 281777028
Source file MD5-checkum: 048d0354e6cfdb61c39e7f06cd0ad16c
Source directory: libreoffice-25.2.1.2
Package URL: https://umvirt.com/linux/downloads/0.2.3/packages/l/libreoffice-25.2.1.2.tar.xz
Package md5-checksum URL: https://umvirt.com/linux/downloads/0.2.3/packages/l/libreoffice-25.2.1.2.tar.xz.md5sum
Dependances: gettext, 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: libreoffice-25.2.1.2-icu76_fixes-1.patch.
Addons: libreoffice-dictionaries-25.2.1.2.tar.xz, libreoffice-help-25.2.1.2.tar.xz, libreoffice-translations-25.2.1.2.tar.xz, libreoffice-tarballs-25.2.1.2.tar.
Nestings *** NO NESTINGS FOUND ***
Configuration script:
sed -i '/icuuc \\/a zlib\\'           writerperfect/Library_wpftdraw.mk &&
sed -i "/distro-install-file-lists/d" Makefile.in                       &&
sed -e "/gzip -f/d"   \
    -e "s|.1.gz|.1|g" \
    -i bin/distro-install-desktop-integration

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

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

export LO_PREFIX=/opt/libreoffice-25.2.1.2

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

./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               \
             --disable-mariadb-sdbc      \
             --enable-release-build=yes  \
             --enable-python=system      \
             --without-java              \
             --with-system-boost         \
             --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-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-icu           \
             --with-system-zlib          \
             --disable-gstreamer-1-0 

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

Build script:
make build

Install script:
export LO_PREFIX=/opt/libreoffice-25.2.1.2

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. Don't try to install this package as root. This package should be installed by other user which can run sudo command without password.