Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
179 changes: 179 additions & 0 deletions libreoffice-26.2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
package:
name: libreoffice-26.2 # On update, please check if -fdelete-null-pointer-checks is still required
version: "libreoffice-26.2.0.3"
epoch: 0
description:
# https://www.libreoffice.org/about-us/licenses
copyright:
- license: GPL-3.0-only AND LGPL-3.0-only AND MPL-2.0
resources:
cpu: 65
memory: 48Gi
dependencies:
runtime:
- libnss
provides:
- libreoffice=${{package.full-version}}

vars:
python-version: 3.12
java-version: 17
java-home: /usr/lib/jvm/java-17-openjdk

environment:
contents:
packages:
- ant
- argon2-dev
- autoconf
- automake
- bash-binsh
- bison
- build-base
- busybox
- cairo-dev
- coreutils
- cups-dev
- curl
- curl-dev
- dbus-dev
- diffutils
- expat-dev
- flex
- fontconfig-dev
- freetype-dev
- fribidi-dev
- glib-dev
- gnutar
- gperf
- gpgme-dev<2
- gst-plugins-base-dev
- gstreamer-dev
- gtk-3-dev
- harfbuzz-dev
- krb5-dev
- libassuan-dev
- libatk-1.0
- libatk-bridge-2.0
- libcmis-dev
- libice-dev
- liblangtag-dev
- libnspr-dev
- libnss-dev
- libsm-dev
- libtool
- libx11-dev
- libxcomposite-dev
- libxcursor-dev
- libxdamage-dev
- libxft-dev
- libxml2-dev
- libxrandr-dev
- libxrender
- libxslt-dev
- libxt-dev
- libxtst-dev
- m4
- mesa
- mesa-dev
- mesa-egl
- mesa-gl
- nasm
- ninja
- openjdk-${{vars.java-version}}
- openjdk-${{vars.java-version}}-default-jvm
- openssl-dev
- orc-dev
- pango-dev
- patch
- perl
- pkgconf
- pkgconf-dev
- py${{vars.python-version}}-meson
- py${{vars.python-version}}-setuptools # To fix `No module named 'distutils'` after bumping to python 3.12
- python-${{vars.python-version}}-dev
- zip
environment:
# https://github.com/wolfi-dev/os/issues/34075
CXXFLAGS: -fdelete-null-pointer-checks
JAVA_HOME: ${{vars.java-home}}

pipeline:
- uses: git-checkout
with:
repository: https://github.com/LibreOffice/core
tag: libreoffice-${{package.version}}
expected-commit: afbbd0df0edb6d40b450b0337ac646b0913a760c

- runs: |
cat > autogen.input <<EOF
--with-jdk-home=$JAVA_HOME
--enable-python=system
--enable-split-debug
--prefix=/usr
--with-system-argon2
--with-system-libcmis
--with-system-expat
--with-system-gpgmepp
--with-system-liblangtag
--with-system-openssl
--with-system-cairo
--with-system-zlib
--with-system-curl
--host=${{host.triplet.gnu}}
--build=${{host.triplet.gnu}}
--without-junit
--without-galleries
EOF
./autogen.sh
sed -i 's/bootstrap: check-if-root/bootstrap: /g' Makefile.in

- runs: make -j$(nproc)

- uses: autoconf/make-install

- uses: strip

subpackages:
- name: ${{package.name}}-dev
pipeline:
- uses: split/dev
# test added by a robot. The APK was empty when it was checked,
# which may not be true forever. If this test fails in the future, please
# replace it with a more accurate test.
test:
pipeline:
- uses: test/emptypackage

update:
enabled: true
ignore-regex-patterns:
- 'cp-*'
- 'co-*'
- 'cib-*'
- 'mimo-*'
github:
identifier: LibreOffice/core
use-tag: true
strip-prefix: libreoffice-
tag-filter-prefix: libreoffice-26.2

test:
pipeline:
- runs: |
/usr/lib/libreoffice/program/soffice.bin --help
- name: convert a csv to pdf
runs: |
set -- /usr/lib/libreoffice/program/soffice.bin --convert-to pdf my.csv
printf "#%s\n%s\n" "#dist,vulns,happiness" "wolfi,0,100" > my.csv
set -x
cat my.csv
# We do have to run this twice. The first time creates .config
# ~/.config/libreofficedev/ but then does nothing.
"$@" || echo "'$*' exited $? the first time. that is probably ok"
"$@" || {
echo "FAIL: '$*' exited $? the second time."
exit 1
}
[ -f my.pdf ] ||
{ echo "FAIL: Expected my.pdf file does not exist"; exit 1; }
Loading