diff options
Diffstat (limited to 'meta-oe/recipes-extended/flatpak/flatpak_1.16.0.bb')
-rw-r--r-- | meta-oe/recipes-extended/flatpak/flatpak_1.16.0.bb | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/flatpak/flatpak_1.16.0.bb b/meta-oe/recipes-extended/flatpak/flatpak_1.16.0.bb new file mode 100644 index 0000000000..f99c8ac36a --- /dev/null +++ b/meta-oe/recipes-extended/flatpak/flatpak_1.16.0.bb | |||
@@ -0,0 +1,80 @@ | |||
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 = " \ | ||
7 | git://github.com/flatpak/flatpak;protocol=https;branch=main \ | ||
8 | file://0001-flatpak-pc-add-pc_sysrootdir.patch \ | ||
9 | " | ||
10 | |||
11 | SRCREV = "1440f4faa67ebf69c7559f31d2cab59e6ec6fe2b" | ||
12 | |||
13 | |||
14 | inherit meson pkgconfig gettext systemd gtk-doc gobject-introspection python3native mime features_check useradd | ||
15 | |||
16 | REQUIRED_DISTRO_FEATURES = "polkit" | ||
17 | |||
18 | DEPENDS = " \ | ||
19 | appstream \ | ||
20 | bison-native \ | ||
21 | bubblewrap-native \ | ||
22 | fuse3 \ | ||
23 | gdk-pixbuf \ | ||
24 | glib-2.0 \ | ||
25 | gpgme \ | ||
26 | json-glib \ | ||
27 | libarchive \ | ||
28 | libcap \ | ||
29 | libxml2 \ | ||
30 | ostree \ | ||
31 | polkit \ | ||
32 | python3-pyparsing-native \ | ||
33 | xdg-dbus-proxy-native \ | ||
34 | zstd \ | ||
35 | " | ||
36 | |||
37 | RDEPENDS:${PN} = " \ | ||
38 | ca-certificates \ | ||
39 | flatpak-xdg-utils \ | ||
40 | fuse3-utils \ | ||
41 | bubblewrap \ | ||
42 | xdg-dbus-proxy \ | ||
43 | " | ||
44 | |||
45 | GIR_MESON_OPTION = "gir" | ||
46 | GIR_MESON_ENABLE_FLAG = 'enabled' | ||
47 | GIR_MESON_DISABLE_FLAG = 'disabled' | ||
48 | GTKDOC_MESON_OPTION = 'gtkdoc' | ||
49 | GTKDOC_MESON_ENABLE_FLAG = 'enabled' | ||
50 | GTKDOC_MESON_DISABLE_FLAG = 'disabled' | ||
51 | |||
52 | PACKAGECONFIG[curl] = "-Dhttp_backend=curl,,curl" | ||
53 | PACKAGECONFIG[dconf] = "-Ddconf=enabled,-Ddconf=disabled,dconf" | ||
54 | PACKAGECONFIG[docbook_docs] = "-Ddocbook_docs=enabled,-Ddocbook_docs=disabled,xmlto-native" | ||
55 | PACKAGECONFIG[man] = "-Dman=enabled,-Dman=disabled,libxslt-native" | ||
56 | PACKAGECONFIG[soup] = "-Dhttp_backend=soup,,libsoup-2.4" | ||
57 | PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false,xauth socat-native" | ||
58 | PACKAGECONFIG[xauth] = "-Dxauth=enabled,-Dxauth=disabled,xauth" | ||
59 | PACKAGECONFIG[seccomp] = "-Dseccomp=enabled,-Dseccomp=disabled,libseccomp" | ||
60 | PACKAGECONFIG[malcontent] = "-Dmalcontent=enabled,-Dmalcontent=disabled,malcontent" | ||
61 | PACKAGECONFIG[selinux] = "-Dselinux_module=enabled,-Dselinux_module=disabled,libselinux" | ||
62 | PACKAGECONFIG[wayland-security-context] = "-Dwayland_security_context=enabled,-Dwayland_security_context=disabled,wayland wayland-native wayland-protocols" | ||
63 | |||
64 | PACKAGECONFIG ?= " \ | ||
65 | curl \ | ||
66 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xauth', '', d)} \ | ||
67 | ${@bb.utils.contains('DISTRO_FEATURES', 'seccomp', 'seccomp', '', d)} \ | ||
68 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland-security-context', '', d)} \ | ||
69 | " | ||
70 | |||
71 | EXTRA_OEMESON = " \ | ||
72 | -Dsystem_fusermount=fusermount3 \ | ||
73 | -Dsystem_bubblewrap=bwrap \ | ||
74 | -Dsystem_dbus_proxy=xdg-dbus-proxy \ | ||
75 | " | ||
76 | |||
77 | USERADD_PACKAGES = "${PN}" | ||
78 | USERADD_PARAM:${PN} = "--system --no-create-home --user-group --shell /sbin/nologin flatpak" | ||
79 | |||
80 | FILES:${PN} += "${libdir} ${datadir}" | ||