Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | DESCRIPTION = "Desktop containment framework." |
| 2 | HOMEPAGE = "http://flatpak.org" |
| 3 | LICENSE = "LGPL-2.1-only" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" |
| 5 | |
| 6 | SRC_URI = " \ |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 7 | gitsm://github.com/flatpak/flatpak;protocol=https;branch=main \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 8 | file://0001-flatpak-pc-add-pc_sysrootdir.patch \ |
| 9 | " |
| 10 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 11 | SRCREV = "e936e3100d406c50ba49f3ad6a0ecae455345ec0" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 12 | |
| 13 | S = "${WORKDIR}/git" |
| 14 | |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 15 | inherit meson pkgconfig gettext systemd gtk-doc gobject-introspection python3native useradd mime features_check |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 16 | |
| 17 | REQUIRED_DISTRO_FEATURES = "polkit" |
| 18 | |
| 19 | DEPENDS = " \ |
| 20 | appstream \ |
| 21 | bison-native \ |
| 22 | curl \ |
| 23 | dconf \ |
| 24 | fuse3 \ |
| 25 | gdk-pixbuf \ |
| 26 | glib-2.0 \ |
| 27 | gpgme \ |
| 28 | json-glib \ |
| 29 | libarchive \ |
| 30 | libcap \ |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 31 | libxml2 \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 32 | libxslt-native \ |
| 33 | ostree \ |
| 34 | polkit \ |
| 35 | python3-pyparsing-native \ |
| 36 | xmlto-native \ |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 37 | zstd \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 38 | " |
| 39 | |
| 40 | RDEPENDS:${PN} = " \ |
| 41 | bubblewrap \ |
| 42 | ca-certificates \ |
| 43 | dconf \ |
| 44 | flatpak-xdg-utils \ |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 45 | xdg-dbus-proxy \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 46 | " |
| 47 | |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 48 | EXTRA_OEMESON += "-Dsystem_dbus_proxy=${bindir}/xdg-dbus-proxy -Dsystem_bubblewrap=${bindir}/bwrap" |
| 49 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 50 | GIR_MESON_OPTION = "" |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 51 | GTKDOC_MESON_OPTION = 'gtkdoc' |
| 52 | GTKDOC_MESON_ENABLE_FLAG = 'enabled' |
| 53 | GTKDOC_MESON_DISABLE_FLAG = 'disabled' |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 54 | |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 55 | PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false,xauth socat-native" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 56 | PACKAGECONFIG[xauth] = "-Dxauth=enabled,-Dxauth=disabled,xauth" |
| 57 | PACKAGECONFIG[seccomp] = "-Dseccomp=enabled,-Dseccomp=disabled,libseccomp" |
| 58 | |
| 59 | PACKAGECONFIG ?= " \ |
| 60 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xauth', '', d)} \ |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 61 | ${@bb.utils.contains('DISTRO_FEATURES', 'seccomp', 'seccomp', '', d)} \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 62 | " |
| 63 | |
| 64 | FILES:${PN} += "${libdir} ${datadir}" |
| 65 | |
| 66 | USERADD_PACKAGES = "${PN}" |
| 67 | USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd" |
| 68 | |
| 69 | do_install:append() { |
| 70 | chmod 0700 ${D}/${datadir}/polkit-1/rules.d |
| 71 | chown polkitd ${D}/${datadir}/polkit-1/rules.d |
| 72 | chgrp root ${D}/${datadir}/polkit-1/rules.d |
| 73 | } |