# Template file for 'flatpak' pkgname=flatpak version=1.15.10 revision=2 build_style=meson build_helper="gir" configure_args=" -Ddbus_config_dir=/usr/share/dbus-1/system.d -Dsystem_bubblewrap=bwrap -Dsystem_dbus_proxy=xdg-dbus-proxy -Dsystem_helper_user=_flatpak -Dselinux_module=disabled -Dgdm_env_file=true -Dsystem_fusermount=/usr/bin/fusermount3 $(vopt_feature gir)" hostmakedepends="bubblewrap gettext glib-devel libxslt pkg-config bison python3-parsing xmlto docbook-xml docbook-xsl xdg-dbus-proxy polkit-devel" makedepends="AppStream-devel libarchive-devel gpgme-devel json-glib-devel libcap-devel libostree-devel libseccomp-devel polkit-devel dconf-devel fuse3-devel libcurl-devel libxml2-devel gdk-pixbuf-devel" depends="bubblewrap gnupg>=2 xdg-dbus-proxy" checkdepends="attr-progs bubblewrap dbus gnupg socat which xdg-dbus-proxy" short_desc="Application sandboxing and distribution framework" maintainer="Duncaen " license="LGPL-2.1-or-later" homepage="https://flatpak.org/" changelog="https://github.com/flatpak/flatpak/raw/main/NEWS" distfiles="https://github.com/flatpak/flatpak/releases/download/${version}/flatpak-${version}.tar.xz" checksum=6aa67ca29b4f4da74654888446710b16c9fcfe640c324a51c5025087eecbf42f build_options="gir" build_options_default="gir" system_accounts="_flatpak" if [ -z "$XBPS_CHECK_PKGS" ]; then configure_args+=" -Dtests=false" fi post_patch() { vsed -i -e '/cp.*usr.lib.locale.C/d' tests/make-test-runtime.sh } post_install() { rm -rf $DESTDIR/usr/lib/systemd } flatpak-devel_package() { short_desc+=" - development files" depends="${sourcepkg}>=${version}_${revision} libglib-devel libostree-devel libcurl-devel libarchive-devel json-glib-devel dconf-devel libseccomp-devel gpgme-devel polkit-devel libxml2-devel libXau-devel" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/*.so" if [ "$build_option_gir" ]; then vmove usr/share/gir-1.0 fi } }