blob: 19f6f45fc1dd9d5d979283ae70c4c5c68ba6ea0d [file] [log] [blame]
Patrick Williamsac13d5f2023-11-24 18:59:46 -06001DESCRIPTION = "Desktop containment framework."
2HOMEPAGE = "http://flatpak.org"
3LICENSE = "LGPL-2.1-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
5
6SRC_URI = " \
7 gitsm://github.com/flatpak/flatpak;protocol=https;branch=main \
8 file://0001-flatpak-pc-add-pc_sysrootdir.patch \
9 file://0001-meson.build-require-for-native-wayland-scanner.patch \
Patrick Williams56b44a92024-01-19 08:49:29 -060010 file://0001-meson.build-require-native-gtkdoc.patch \
Patrick Williamsac13d5f2023-11-24 18:59:46 -060011"
12
13SRCREV = "27b11b93c2a80a91c9461bc6c7f5e9a201406041"
14
15S = "${WORKDIR}/git"
16
17inherit meson pkgconfig gettext systemd gtk-doc gobject-introspection python3native useradd mime features_check
18
19REQUIRED_DISTRO_FEATURES = "polkit"
20
21DEPENDS = " \
22 appstream \
23 bison-native \
24 dconf \
25 fuse3 \
26 gdk-pixbuf \
27 glib-2.0 \
28 gpgme \
29 json-glib \
30 libarchive \
31 libcap \
32 libxml2 \
33 ostree \
34 polkit \
35 python3-pyparsing-native \
36 zstd \
37"
38
39RDEPENDS:${PN} = " \
40 bubblewrap \
41 ca-certificates \
42 dconf \
43 flatpak-xdg-utils \
44 xdg-dbus-proxy \
45"
46
Patrick Williamsac13d5f2023-11-24 18:59:46 -060047GIR_MESON_OPTION = "gir"
48GIR_MESON_ENABLE_FLAG = 'enabled'
49GIR_MESON_DISABLE_FLAG = 'disabled'
50GTKDOC_MESON_OPTION = 'gtkdoc'
51GTKDOC_MESON_ENABLE_FLAG = 'enabled'
52GTKDOC_MESON_DISABLE_FLAG = 'disabled'
53
54PACKAGECONFIG[curl] = "-Dhttp_backend=curl,,curl"
55PACKAGECONFIG[docbook_docs] = "-Ddocbook_docs=enabled,-Ddocbook_docs=disabled,xmlto-native"
56PACKAGECONFIG[man] = "-Dman=enabled,-Dman=disabled,libxslt-native"
57PACKAGECONFIG[soup] = "-Dhttp_backend=soup,,libsoup-2.4"
58PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false,xauth socat-native"
59PACKAGECONFIG[xauth] = "-Dxauth=enabled,-Dxauth=disabled,xauth"
60PACKAGECONFIG[seccomp] = "-Dseccomp=enabled,-Dseccomp=disabled,libseccomp"
61PACKAGECONFIG[selinux] = "-Dselinux_module=enabled,-Dselinux_module=disabled,libselinux"
62PACKAGECONFIG[wayland-security-context] = "-Dwayland_security_context=enabled,-Dwayland_security_context=disabled,wayland wayland-native wayland-protocols"
63
64PACKAGECONFIG ?= " \
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
71FILES:${PN} += "${libdir} ${datadir}"
72
73USERADD_PACKAGES = "${PN}"
74USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd"
75
76do_install:append() {
77 chmod 0700 ${D}/${datadir}/polkit-1/rules.d
78 chown polkitd ${D}/${datadir}/polkit-1/rules.d
79 chgrp root ${D}/${datadir}/polkit-1/rules.d
80}