libreoffice/container.yaml
Yaakov Selkowitz f8d8925d17 F44
2026-03-24 21:01:06 -04:00

125 lines
4.2 KiB
YAML

flatpak:
id: org.libreoffice.LibreOffice
branch: stable
runtime-name: flatpak-runtime
runtime-version: f44
component: libreoffice-flatpak
packages:
# apps
- libreoffice
- libreoffice-base
- libreoffice-calc
- libreoffice-draw
- libreoffice-impress
- libreoffice-math
- libreoffice-writer
# extensions
- libreoffice-emailmerge
- libreoffice-filters
- libreoffice-librelogo
- libreoffice-nlpsolver
- libreoffice-ogltrans
- libreoffice-postgresql
- libreoffice-wiki-publisher
# integration plugins
- libreoffice-gtk3
# for texlive extension
- libgs
# langpacks
- libreoffice-langpack-*
- libreoffice-voikko
command: /app/bin/libreoffice
rename-mime-file: libreoffice.xml
add-extensions:
org.libreoffice.LibreOffice.BundledExtension:
directory: lib64/libreoffice/share/extensions
subdirectories: true
autodelete: true
no-autodownload: true
org.libreoffice.LibreOffice.Help:
directory: lib64/libreoffice/help
autodelete: true
no-autodownload: true
org.libreoffice.LibreOffice.Locale:
directory: share/runtime/locale
autodelete: true
locale-subset: true
org.fedoraproject.Sdk.Extension.texlive:
directory: texlive
version: f44
add-ld-path: lib
autodelete: true
no-autodownload: true
finish-args: |-
--share=network
--share=ipc
--socket=cups
--socket=fallback-x11
--socket=wayland
--socket=pulseaudio
--device=dri
--filesystem=host
--filesystem=xdg-config/gtk-3.0
--filesystem=xdg-config/fontconfig:ro
--filesystem=xdg-run/gvfsd
--env=JAVA_HOME=/app/lib/jvm/jre
--env=LIBO_FLATPAK=1
--env=PATH=/app/texlive/bin:/app/bin:/usr/bin
--env=TEXMFROOT=/app/texlive
--own-name=org.libreoffice.LibreOfficeIpc0
--talk-name=org.gtk.vfs.*
cleanup-commands: |
find /app/lib64/libreoffice/help -mindepth 1 -delete
ln -s /usr/share/hunspell /app/share/hunspell
ln -s /usr/share/hyphen /app/share/hyphen
ln -s /usr/share/mythes /app/share/mythes
sed -i '/^NoDisplay/d' /app/share/applications/org.libreoffice.LibreOffice.desktop
cd /app/share/autocorr
for f in acor_*; do
l=`echo $f | sed -e 's/acor_\([^-_\.]*\)[-_\.].*/\1/'`
rm -f $f
ln -sf ../runtime/locale/$l/autocorr/$f .
done
cd /app/lib64/libreoffice/program/resource
for d in *; do
l=`echo $d | sed -e 's/\([^-_\.@]*\)[-_\.@].*/\1/'`
case $l in common) continue ;; esac
find $d -delete
ln -sf ../../../../share/runtime/locale/$l/resource/$d .
done
cd /app/lib64/libreoffice/share/autotext
for d in *; do
l=`echo $d | sed -e 's/\([^-_\.@]*\)[-_\.@].*/\1/'`
case $l in common) continue ;; esac
find $d -delete
ln -sf ../../../../share/runtime/locale/$l/autotext/$d .
done
cd /app/lib64/libreoffice/share/registry
for f in Langpack-*; do
l=`echo $f | sed -e 's/Langpack-\([^-_\.]*\)[-_\.].*/\1/'`
rm -f $f
ln -sf ../../../../share/runtime/locale/$l/registry/$f .
done
cd /app/lib64/libreoffice/share/registry/res
for f in fcfg_langpack_*; do
l=`echo $f | sed -e 's/fcfg_langpack_\([^-_\.]*\)[-_\.].*/\1/'`
rm -f $f
ln -sf ../../../../../share/runtime/locale/$l/registry/$f .
done
for f in registry_*; do
l=`echo $f | sed -e 's/registry_\([^-_\.]*\)[-_\.].*/\1/'`
rm -f $f
ln -sf ../../../../../share/runtime/locale/$l/registry/$f .
done
cd /app/lib64/libreoffice/share/wizards
for f in resources_*; do
l=`echo $f | sed -e 's/resources_\([^-_\.]*\)[-_\.].*/\1/'`
rm -f $f
ln -sf ../../../../share/runtime/locale/$l/wizards/$f .
done