tar -xf libreoffice-6.1.0.3.tar.xz --no-overwrite-dir
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
CPPFLAGS='-DU_USING_ICU_NAMESPACE=1' make build-nocheck
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-databaseComments:
Compilation from maintainer user account (sudo without password). Compilation from root account is prohibited.
Compilation take long time.