From af41babaff83a630e8fe455b6d7ea91bce5a9761 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 22 Aug 2018 17:37:52 +1000 Subject: [PATCH] Add flatpak support Run these two commands: flatpak-builder --user build-dir --force-clean org.freedesktop.Piper.json flatpak-builder --run build-dir ~/code/ratbag/piper/org.freedesktop.Piper.json piper And marvel at the piper flatpak. This is the minimal version, it starts with two gtk-related complains that may be fixable. The env "XSLT_CONFIG": "pkg-config libxslt" is required for lxml to build, see lxml PR 259 on github. Fixes #202 Signed-off-by: Peter Hutterer --- org.freedesktop.Piper.json | 63 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 org.freedesktop.Piper.json diff --git a/org.freedesktop.Piper.json b/org.freedesktop.Piper.json new file mode 100644 index 0000000..0c8901a --- /dev/null +++ b/org.freedesktop.Piper.json @@ -0,0 +1,63 @@ +{ + "app-id": "org.freedesktop.Piper", + "runtime": "org.gnome.Platform", + "runtime-version": "3.28", + "sdk": "org.gnome.Sdk", + "command": "piper", + "finish-args": [ + "--share=ipc", + "--socket=x11", + "--socket=wayland", + "--filesystem=xdg-run/dconf", + "--filesystem=~/.config/dconf:ro", + "--talk-name=ca.desrt.dconf", + "--env=DCONF_USER_CONFIG_DIR=.config/dconf", + "--system-talk-name=org.freedesktop.ratbag1" + ], + "modules": [ + { + "name": "python-evdev", + "buildsystem": "simple", + "build-commands": [ + "pip3 install --prefix=/app --no-deps ." + ], + "sources": [ + { + "type": "archive", + "url": "https://files.pythonhosted.org/packages/da/c9/8f88a77b6f934d60e3ff0e210ed7a15f47a2e9c05e4c8fea67d99d670ab1/evdev-1.0.0.tar.gz", + "sha256": "be0288ef1125bf1c539bb8f3079ef4aa5fb813af28f0c5294a4e744ee554398a" + } + ] + }, + { + "name": "python-lxml", + "buildsystem": "simple", + "build-commands": [ + "pip3 install --prefix=/app --no-deps ." + ], + "build-options": { + "env": { + "XSLT_CONFIG": "pkg-config libxslt" + } + }, + "sources": [ + { + "type": "archive", + "url": "https://files.pythonhosted.org/packages/ca/63/139b710671c1655aed3b20c1e6776118c62e9f9311152f4c6031e12a0554/lxml-4.2.4.tar.gz", + "sha256": "e2afbe403090f5893e254958d02875e0732975e73c4c0cdd33c1f009a61963ca" + } + ] + }, + { + "name": "Piper", + "buildsystem": "meson", + "config-opts": [ "-Dignore-ratbagd-dependency=true" ], + "sources": [ + { + "type": "git", + "url": "https://github.com/libratbag/piper" + } + ] + } + ] +}