Skip to content

Commit

Permalink
Add flatpak support
Browse files Browse the repository at this point in the history
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 <peter.hutterer@who-t.net>
  • Loading branch information
whot authored and Hjdskes committed Sep 6, 2018
1 parent 09439cb commit af41bab
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions 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"
}
]
}
]
}

0 comments on commit af41bab

Please sign in to comment.