# odd numbers are for development pkgname=flatpak pkgver=1.14.5 pkgrel=3 pkgdesc="System for building, distributing and running sandboxed desktop applications on Linux." url="https://flatpak.org" arch=('x86_64') license=('GPL') depends=('bubblewrap' 'dconf' 'elfutils' 'fuse3' 'glib2' 'json-glib' 'libarchive' 'ostree' 'polkit' 'xorg-xauth' 'python3' 'patch' 'systemd' 'appstream' 'xdg-desktop-portal-kde' 'libsodium') makedepends=('intltool' 'xmlto' 'socat' 'python3-pyparsing') optdepends=('xdg-desktop-portal-gtk: Integration for GTK based Flatpaks') install=flatpak.install source=("https://github.com/flatpak/flatpak/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz") sha256sums=('5b70c64ce7ac134e1ea08011256e423ae5c54f277297441583f77d013f27ffac') build() { cd ${pkgname}-${pkgver} ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --sbindir=/usr/bin \ --libexecdir=/usr/lib/${pkgname} \ --disable-static \ --disable-documentation \ --disable-docbook-docs \ --with-system-bubblewrap \ --with-priv-mode=setuid \ --with-dbus-config-dir=/usr/share/dbus-1/system.d \ --with-system-install-dir=/var/lib/flatpak make } check() { cd ${pkgname}-${pkgver} # 4 docs tests fail make -k check || : } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install install -d -o root -g 102 -m 700 ${pkgdir}/usr/share/polkit-1/rules.d }