Package Details: libreoffice-slim-git latest-6

Git Clone URL: https://aur.archlinux.org/libreoffice-slim-git.git (read-only, click to copy)
Package Base: libreoffice-slim-git
Description: A slimmed down Git version of LibreOffice
Upstream URL: https://www.libreoffice.org/community/developers/
Keywords: office
Licenses: GPL
Submitter: sxw
Maintainer: sxw
Last Packager: sxw
Votes: 2
Popularity: 0.000000
First Submitted: 2017-02-26 09:22 (UTC)
Last Updated: 2025-02-23 20:13 (UTC)

Latest Comments

1 2 Next › Last »

otula commented on 2025-06-26 18:06 (UTC) (edited on 2025-06-26 18:09 (UTC) by otula)

Hi, if anyone would like, here is my modified PKGBUILD. I have some extra things enabled that I use. Also, Czech localization is added, which is compiled together with the program (adjust it according to your needs). The package is created together with icons for the main menu. I use soffice.bin for startup - it is supposedly wrong, but it is faster than soffice and everything works for me. And I run it with the x11 backend, because otherwise the style editing is stupid. The VCL is gtk3, because then scrolling is smooth and fast even on an old computer. One problem is that with a dark design I have to turn off font previews, because otherwise there is white font on a white background. The second problem is that after a fresh installation, the program has to be started twice in a row to run. After that, it works normally.

# Maintainer: Simon Wilper <sxw@chronowerks.de>
pkgname=libreoffice-slim-git-cz
pkgver=latest
pkgrel=6
pkgdesc="A slimmed down Git version of LibreOffice with Czech language support"
arch=('x86_64')
url="https://www.libreoffice.org/community/developers/"
license=('GPL')
makedepends=(git yasm bison cppunit glm mythes)
depends=(gperf zip unzip libcmis clucene xmlsec
  libetonyek libstaroffice boost boost-libs unixodbc sane
  argon2 redland)

_gitroot=https://gerrit.libreoffice.org/core
_gitname=core

prepare() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [[ -d "$_gitname" ]]; then
    cd "$_gitname" && git pull -r
    msg "The local files are updated."
  else
    git clone --depth 1 "$_gitroot" "$_gitname"
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting build..."

  cd "${srcdir}/${_gitname}"

  [[ -d workdir ]] && make clean

  build_hash=$(git log --pretty=%h | head -n1)
  build_date=$(date +%Y%m%d)
  ./autogen.sh\
    --disable-odk\
    --disable-report-builder\
    --with-package-format=archive\
    --disable-lpsolve\
    --disable-coinmp\
    --disable-crashdump\
    --enable-optimized=yes\
    --enable-lto\
    --disable-gio\
    --disable-gtk3-kde5 \
    --disable-kf6 \
    --disable-gtk4 \
    --disable-eot \
    --enable-release-build\
    --enable-python=fully-internal\
    --disable-mariadb-sdbc\
    --disable-postgresql-sdbc\
    --disable-firebird-sdbc\
    --disable-dconf\
    --disable-ldap\
    --disable-opencl\
    --disable-lotuswordpro\
    --disable-gstreamer-1-0\
    --disable-zxing\
    --with-system-libs\
    --with-system-headers\
    --with-galleries=no\
    --with-java=no\
    --without-fonts\
    --with-system-mdds=no\
    --with-system-dragonbox=no\
    --with-system-frozen=no\
    --with-system-libfixmath=no\
    --with-system-orcus=no\
    --with-system-zxcvbn=no\
    --with-system-altlinuxhyph=no\
    --with-system-box2d=no\
    --without-help\
    --with-lang="cs"\
    --with-vendor="XXX@XXX.XX"\
    --prefix=/usr\
    --with-extra-buildid="built by XXX: ${build_hash}-${build_date}"
}

build() {
  cd "${srcdir}/${_gitname}"
  make
  cd workdir/installation/LibreOffice/archive/install/en-US
  msg "Extracting LibreOffice Installation Tarball..."
  tar xf *.tar.gz

  msg "Patching boostraprc..."
  cd LibreOffice*/program
  sed -i -e 's@^UserInstallation.*@UserInstallation=$SYSUSERCONFIG/libreoffice@g' bootstraprc

  cd "${srcdir}/${_gitname}/workdir/installation/LibreOffice_languagepack/archive/install/cs"
  msg "Extracting LibreOffice CZ language Tarball..."
  tar xf *.tar.gz
}

package() {
    cd "${pkgdir}"
    install -d -m755 ${pkgdir}/usr/lib/libreoffice
    cp -r ${srcdir}/${_gitname}/workdir/installation/LibreOffice/archive/install/en-US/LibreOffice*/* ${pkgdir}/usr/lib/libreoffice
    cp -r ${srcdir}/${_gitname}/workdir/installation/LibreOffice_languagepack/archive/install/cs/LibreOffice*/* ${pkgdir}/usr/lib/libreoffice

# ikonky
  mkdir -p "${pkgdir}/usr/share/icons/hicolor"
  cp -r ${srcdir}/${_gitname}/sysui/desktop/icons/hicolor/* ${pkgdir}/usr/share/icons/hicolor


  # Fix desktop files
  mkdir -p "${pkgdir}/usr/share/applications"
  for _f in "${pkgdir}"/usr/lib/libreoffice/share/xdg/*.desktop; do
    sed -i 's|Exec=libreoffice[0-9]\+\.[0-9]\+|Exec=env GDK_BACKEND=x11 /usr/lib/libreoffice/program/soffice.bin|' "${_f}"
    sed -i 's|Icon=libreoffice[0-9]\+\.[0-9]\+-|Icon=|' "${_f}"
    mv "${_f}" "${pkgdir}/usr/share/applications"
  done
  rm -rf "${pkgdir}/usr/lib/libreoffice/share/xdg"

}

otula commented on 2025-04-25 10:42 (UTC)

Hello, add glm and mythes as makedepends.

sxw commented on 2025-02-23 20:18 (UTC)

@ardv The latest commit message of 7a60bd5 contains a summary of what features have been turned off. I started this project years ago just to see what can be turned off in order to keep dependencies at minimum. I know, there is still potential...

ardv commented on 2025-02-17 13:16 (UTC)

is there any details about this version? what is disabled in this version? i cant find: libreoffice-slim in libreoffice website documentation?

Dylan14 commented on 2022-01-23 01:24 (UTC)

The flag --disable-neon is unrecognized by configure.

sxw commented on 2021-11-08 22:58 (UTC)

It was the easiest way to not interfere with an already installed libreoffice-{still,fresh}. Do you think we should go for a conflicts directive here?

rien333 commented on 2021-10-28 18:18 (UTC) (edited on 2021-10-28 18:20 (UTC) by rien333)

Why go for /opt as the folder where the installation lives in? This is not at all what the package in the main repos does, nor standard practice in (Arch) Linux.

And could you (also) add that this provides libreoffice, or something along those lines? My primary reason for wanting a slim libreoffice is that its a dependency for a program I actually want to use, namely unoconv.

rien333 commented on 2021-10-28 18:18 (UTC)

Why go for /opt as the folder where the installation lives in? This is not at all what the package in the main repos does, nor standard practice in (Arch) Linux.

sxw commented on 2021-02-24 17:58 (UTC)

Done

Dylan14 commented on 2021-02-24 01:15 (UTC)

The flag --with-build-version is unrecognized by configure, and should be removed from the pkgbuild.