summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/flatpak
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2022-12-23 04:11:04 +0100
committerKhem Raj <raj.khem@gmail.com>2022-12-26 09:55:57 -0800
commit841daa24d5d0730bfa1fdb0dc7898b29061face4 (patch)
tree66da8dba15a2e1e58ba0bb54e201d354ce64548a /meta-oe/recipes-extended/flatpak
parentf84fd3a028d6081874641ba7f159a6586fc78a74 (diff)
downloadmeta-openembedded-841daa24d5d0730bfa1fdb0dc7898b29061face4.tar.gz
flatpak: add recipe
Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/flatpak')
-rw-r--r--meta-oe/recipes-extended/flatpak/flatpak/0001-flatpak-pc-add-pc_sysrootdir.patch26
-rw-r--r--meta-oe/recipes-extended/flatpak/flatpak_1.15.1.bb64
2 files changed, 90 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/flatpak/flatpak/0001-flatpak-pc-add-pc_sysrootdir.patch b/meta-oe/recipes-extended/flatpak/flatpak/0001-flatpak-pc-add-pc_sysrootdir.patch
new file mode 100644
index 0000000000..99e9cd23b1
--- /dev/null
+++ b/meta-oe/recipes-extended/flatpak/flatpak/0001-flatpak-pc-add-pc_sysrootdir.patch
@@ -0,0 +1,26 @@
1From 3a1ab02d821cd4b0af44c0dad87e290ebaabef83 Mon Sep 17 00:00:00 2001
2From: Markus Volk <f_l_k@t-online.de>
3Date: Wed, 14 Dec 2022 06:50:40 +0100
4Subject: [PATCH] flatpak.pc: add pc_sysrootdir
5
6Signed-off-by: Markus Volk <f_l_k@t-online.de>
7---
8 meson.build | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/meson.build b/meson.build
12index 4a0b865e..5f69b1d9 100644
13--- a/meson.build
14+++ b/meson.build
15@@ -509,7 +509,7 @@ pkgconfig_variables += 'exec_prefix=${prefix}'
16 pkgconfig_variables += 'datadir=' + ('${prefix}' / get_option('datadir'))
17
18 pkgconfig_variables += 'datarootdir=' + ('${prefix}' / get_option('datadir'))
19-pkgconfig_variables += 'interfaces_dir=${datadir}/dbus-1/interfaces/'
20+pkgconfig_variables += 'interfaces_dir=${pc_sysrootdir}${datadir}/dbus-1/interfaces/'
21 pkgconfig_variables += 'httpbackend=' + get_option('http_backend')
22
23 pkgconfig.generate(
24--
252.34.1
26
diff --git a/meta-oe/recipes-extended/flatpak/flatpak_1.15.1.bb b/meta-oe/recipes-extended/flatpak/flatpak_1.15.1.bb
new file mode 100644
index 0000000000..a906e67614
--- /dev/null
+++ b/meta-oe/recipes-extended/flatpak/flatpak_1.15.1.bb
@@ -0,0 +1,64 @@
1DESCRIPTION = "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;nobranch=1 \
8 file://0001-flatpak-pc-add-pc_sysrootdir.patch \
9"
10
11SRCREV = "47ea3934c0e055605b8dff93edad2136141e48ec"
12
13S = "${WORKDIR}/git"
14
15inherit meson pkgconfig gettext systemd gobject-introspection python3native useradd mime features_check
16
17REQUIRED_DISTRO_FEATURES = "polkit"
18
19DEPENDS = " \
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 \
31 libxslt-native \
32 ostree \
33 polkit \
34 python3-pyparsing-native \
35 xmlto-native \
36"
37
38RDEPENDS:${PN} = " \
39 bubblewrap \
40 ca-certificates \
41 dconf \
42"
43
44GIR_MESON_OPTION = ""
45
46PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false,xauth"
47PACKAGECONFIG[xauth] = "-Dxauth=enabled,-Dxauth=disabled,xauth"
48PACKAGECONFIG[seccomp] = "-Dseccomp=enabled,-Dseccomp=disabled,libseccomp"
49
50PACKAGECONFIG ?= " \
51 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xauth', '', d)} \
52 ${@bb.utils.contains('DISTRO_FEATURES', 'security', 'seccomp', '', d)} \
53"
54
55FILES:${PN} += "${libdir} ${datadir}"
56
57USERADD_PACKAGES = "${PN}"
58USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd"
59
60do_install:append() {
61 chmod 0700 ${D}/${datadir}/polkit-1/rules.d
62 chown polkitd ${D}/${datadir}/polkit-1/rules.d
63 chgrp root ${D}/${datadir}/polkit-1/rules.d
64}