[polari] flatpak: add flatpak build manifest



commit 53c58f78e319a087c3dfba8ff6de6ab2e4d569ae
Author: Christian Hergert <chergert redhat com>
Date:   Wed Nov 30 13:50:55 2016 -0800

    flatpak: add flatpak build manifest
    
    This allows Polari to be built with flatpak-builder, including with
    GNOME Builder 3.22.3 by selecting Build Preferences → org.gnome.Polari.json
    as the Runtime.

 .gitignore            |    1 +
 org.gnome.Polari.json |   73 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ea2789b..ddee6d9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,6 +5,7 @@
 *.sw?
 *.tar.xz
 *.typelib
+.flatpak-builder
 *~
 .deps
 .dirstamp
diff --git a/org.gnome.Polari.json b/org.gnome.Polari.json
new file mode 100644
index 0000000..ff570e1
--- /dev/null
+++ b/org.gnome.Polari.json
@@ -0,0 +1,73 @@
+{
+    "app-id": "org.gnome.Polari",
+    "runtime": "org.gnome.Platform",
+    "runtime-version": "master",
+    "sdk": "org.gnome.Sdk",
+    "command": "polari",
+    "tags": ["devel"],
+    "desktop-file-name-prefix": "(Development) ",
+    "finish-args": [
+        /* X11 + XShm access */
+        "--share=ipc", "--socket=x11",
+        /* Wayland access */
+        "--socket=wayland",
+        /* Needs network, obviously */
+        "--share=network",
+        /* Our client name */
+        "--own-name=org.freedesktop.Telepathy.Client.Polari",
+        /* Telepathy */
+        "--talk-name=org.freedesktop.Telepathy.AccountManager",
+        "--talk-name=org.freedesktop.Telepathy.ChannelDispatcher",
+        "--talk-name=org.freedesktop.Telepathy.Connection.idle.irc.*",
+        /* Keyring */
+        "--talk-name=org.freedesktop.secrets",
+        /* log files written by tp-logger outside the sandbox */
+        "--filesystem=~/.local/share/TpLogger:ro",
+        "--env=TPL_LOG_DIR=.local/share",
+        /* dconf */
+        "--filesystem=xdg-run/dconf", "--filesystem=~/.config/dconf:ro",
+        "--talk-name=ca.desrt.dconf", "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
+    ],
+    "build-options": {
+        "cflags": "-O2 -g"
+    },
+    "cleanup": ["/include","/libexec","/lib/*.la","/lib/*.a",
+                "/lib/pkgconfig","/lib/polari/*.la",
+                "/share/aclocal", "/share/gir-1.0", "/share/gtk-doc"
+    ],
+    "modules": [
+        {
+            "name": "telepathy-glib",
+            "sources": [
+                {
+                    "type": "archive",
+                    "url": 
"http://telepathy.freedesktop.org/releases/telepathy-glib/telepathy-glib-0.24.1.tar.gz";,
+                    "sha256": "9e0df1d8f857e0270cf0b32e2d1ca5a24aa7282873361785d573f72ad7f7d5eb"
+                }
+            ]
+        },
+        {
+            "name": "telepathy-logger",
+            "sources": [
+                {
+                    "type": "archive",
+                    "url": 
"http://telepathy.freedesktop.org/releases/telepathy-logger/telepathy-logger-0.8.2.tar.bz2";,
+                    "sha256": "8fcad534d653b1b365132c5b158adae947810ffbae9843f72dd1797966415dae"
+                },
+                {
+                    "type": "patch",
+                    "path": "build-aux/flatpak/tpl-override-basedir.patch"
+                }
+            ]
+        },
+        {
+            "name": "polari",
+            "sources": [
+                {
+                    "type": "git",
+                    "url": "git://git.gnome.org/polari"
+                }
+            ]
+        }
+    ]
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]