tce-load -wil python3.9-pip compiletc meson gobject-introspection-dev libpcap-dev libcap-dev libarchive-dev curl-dev polkit-dev fuse3-dev ostree-dev json-glib-dev appstream-dev gdk-pixbuf2-dev libseccomp-dev socat git

wget https://github.com/flatpak/flatpak/archive/refs/tags/1.16.1.tar.gz

sudo pip3 install pyparsing
sudo cp -r ./C.utf8 /usr/lib/locale/

cd flatpak-1.16.1
mkdir build
cd build

CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" meson setup --prefix=/usr/local

meson compile [1m 6.16s]
DESTDIR=/tmp/dest meson install


flatpak 1.16.1

    Build system helper     : YES
    Build selinux module    : NO
    Build bubblewrap        : YES
    Build dbus-proxy        : YES
    fusermount executable   : /usr/local/bin/fusermount3
    Use sandboxed triggers  : YES
    Use seccomp             : YES
    Privileged group        : wheel
    Use dconf               : NO
    Use libsystemd          : YES
    Use libmalcontent       : NO
    Use libzstd             : YES
    Use auto sideloading    : NO
    Wayland security context: YES

  Subprojects
    bubblewrap              : YES
    dbus-proxy              : YES
    libglnx                 : YES

  User defined options
    prefix                  : /usr/local
