#!/bin/sh

flatpak build --with-appdir --allow=devel --bind-mount=/run/user/1000/doc=/run/user/1000/doc/by-app/com.github.cgueret.Scriptorium --share=network --share=ipc --socket=fallback-x11 --device=dri --socket=wayland --talk-name=org.freedesktop.portal.* --talk-name=org.a11y.Bus --bind-mount=/run/flatpak/at-spi-bus=/run/user/1000/at-spi/bus --env=AT_SPI_BUS_ADDRESS=unix:path=/run/flatpak/at-spi-bus --env=DESKTOP_SESSION=gnome --env=LANG=en_GB.UTF-8 --env=WAYLAND_DISPLAY=wayland-0 --env=XDG_CURRENT_DESKTOP=GNOME --env=XDG_SESSION_DESKTOP=gnome --env=XDG_SESSION_TYPE=wayland --env=PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/home/cgueret/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/opt/rocm/bin:/opt/rocm/hip/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/app/bin:/usr/bin --env=LD_LIBRARY_PATH=/app/lib --env=PKG_CONFIG_PATH=/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig --share=network --bind-mount=/run/host/fonts=/usr/share/fonts --bind-mount=/run/host/fonts-cache=/var/cache/fontconfig --filesystem=/home/cgueret/.cache/fontconfig:ro --bind-mount=/run/host/user-fonts-cache=/home/cgueret/.cache/fontconfig --bind-mount=/run/host/font-dirs.xml=/home/cgueret/.cache/font-dirs.xml /home/cgueret/Projects/Scriptorium/.flatpak/repo /usr/bin/meson "$@"