mirror of
https://github.com/libratbag/piper.git
synced 2026-05-19 04:16:08 -04:00
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 <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Jente Hidskes
parent
09439cba21
commit
af41babaff
63
org.freedesktop.Piper.json
Normal file
63
org.freedesktop.Piper.json
Normal file
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user