# Description: Linux application sandboxing and distribution framework (formerly xdg-app) # URL: https://flatpak.org # Maintainer: Tim Biermann, tbier at posteo dot de # Depends on: appstream appstream-glib ostree polkit python3-pyparsing socat xdg-dbus-proxy # Optional: dconf docbook-xsl libxslt xdg-desktop-portal xdg-desktop-portal-gtk xdg-desktop-portal-kde name=flatpak version=1.17.0 release=1 source=(https://github.com/flatpak/flatpak/releases/download/$version/$name-$version.tar.xz) build() { meson setup $name-$version build \ --prefix=/usr \ --libexecdir=lib \ --buildtype=plain \ --wrap-mode nodownload \ -D b_lto=true \ -D b_pie=true \ -D dbus_config_dir=/usr/share/dbus-1/system.d \ -D profile_dir=/etc/profile.d \ -D system_helper_user=flatpak \ -D system_bubblewrap=/usr/bin/bwrap \ -D system_dbus_proxy=/usr/bin/xdg-dbus-proxy meson compile -C build DESTDIR=$PKG meson install -C build rm -fr $PKG/usr/lib/{systemd,sysusers.d} rm -fr $PKG/usr/share/{fish,locale} }