PKGNAME=flatpak
PKGSEC=admin
PKGDEP="appstream bubblewrap curl dbus dconf fuse-3 gcc-runtime gdk-pixbuf \
        glib glibc gpgme json-glib libarchive libcap libseccomp libsodium \
        libxau libxml2 malcontent ostree polkit systemd wayland x11-app \
        xdg-dbus-proxy zstd"
BUILDDEP="docbook-xsl gobject-introspection wayland-protocols xmlto"
PKGDES="Application deployment framework for desktop applications"

ABTYPE=meson
MESON_AFTER=(
    '-Dselinux_module=disabled'
    '-Dsystem_helper=enabled'
    '-Dauto_sideloading=true'
    '-Ddconf=enabled'
    '-Dgir=enabled'
    '-Dlibzstd=enabled'
    '-Dmalcontent=enabled'
    '-Dman=enabled'
    '-Dgdm_env_file=true'
    '-Dsandboxed_triggers=true'
    '-Dseccomp=enabled'
    '-Dgtkdoc=disabled'
    '-Ddocbook_docs=disabled'
    '-Dinternal_checks=false'
    '-Dinstalled_tests=false'
    '-Dprivileged_group=wheel'
    '-Dsystem_bubblewrap=/usr/bin/bwrap'
    '-Dsystem_dbus_proxy=/usr/bin/xdg-dbus-proxy'
    '-Dsystem_fusermount=/usr/bin/fusermount3'
    '-Dsystemd=enabled'
    '-Dxauth=enabled'
    '-Dtests=false'
)

PKGBREAK="xdg-app<=0.5.2 discover<=5.27.10 gnome-builder<=42.1-4 gnome-software<=42.4 \
          malcontent<=0.10.5 xdg-desktop-portal<=1.16.0 flatpak-builder<=1.0.14"
PKGREP="xdg-app<=0.5.2"
