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