[latexila/wip/flatpak] Add Flatpak manifest and scripts



commit 66d218614830202a347b3abda52fa98c772fa6b3
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Jun 22 07:10:34 2016 +0200

    Add Flatpak manifest and scripts
    
    There is a problem, LaTeX (TeX Live) is not installed inside the
    sandbox. LaTeXila launches a GSubprocess with a latex command.

 flatpak/.gitignore              |    4 ++
 flatpak/add-remote.sh           |    3 +
 flatpak/build.sh                |    9 ++++
 flatpak/install-app.sh          |    3 +
 flatpak/org.gnome.latexila.json |   78 +++++++++++++++++++++++++++++++++++++++
 flatpak/run-app.sh              |    3 +
 6 files changed, 100 insertions(+), 0 deletions(-)
---
diff --git a/flatpak/.gitignore b/flatpak/.gitignore
new file mode 100644
index 0000000..37b3d6c
--- /dev/null
+++ b/flatpak/.gitignore
@@ -0,0 +1,4 @@
+.flatpak-builder/
+latexila.gpg
+latexila/
+repo/
diff --git a/flatpak/add-remote.sh b/flatpak/add-remote.sh
new file mode 100755
index 0000000..a699f05
--- /dev/null
+++ b/flatpak/add-remote.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+flatpak remote-add --user --gpg-import=latexila.gpg latexila-repo repo
diff --git a/flatpak/build.sh b/flatpak/build.sh
new file mode 100755
index 0000000..1e9b504
--- /dev/null
+++ b/flatpak/build.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# not 100% sure
+gpg_key=2C472470
+gpg2 --export $gpg_key > latexila.gpg
+
+rm -rf latexila/ repo/
+flatpak-builder latexila org.gnome.latexila.json || exit 1
+flatpak build-export --gpg-sign=$gpg_key repo latexila
diff --git a/flatpak/install-app.sh b/flatpak/install-app.sh
new file mode 100755
index 0000000..8cb54ad
--- /dev/null
+++ b/flatpak/install-app.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+flatpak install --user latexila-repo org.gnome.latexila
diff --git a/flatpak/org.gnome.latexila.json b/flatpak/org.gnome.latexila.json
new file mode 100644
index 0000000..f59fe6e
--- /dev/null
+++ b/flatpak/org.gnome.latexila.json
@@ -0,0 +1,78 @@
+{
+    "app-id": "org.gnome.latexila",
+    "runtime": "org.gnome.Platform",
+    "runtime-version": "3.20",
+    "sdk": "org.gnome.Sdk",
+    "command": "latexila",
+    "finish-args": [
+        /* X11 + XShm access */
+        "--share=ipc", "--socket=x11",
+        /* Wayland access */
+        "--socket=wayland",
+        /* We want full fs access so we can read the files */
+        "--filesystem=host",
+        /* Needed for dconf to work */
+        "--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",
+        "cxxflags": "-O2 -g",
+        "env": {
+            "V": "1"
+        }
+    },
+    "cleanup": ["/include", "/lib/pkgconfig",
+                "/share/pkgconfig", "/share/aclocal",
+                "/man", "/share/man", "/share/gtk-doc",
+                "/share/vala",
+                "*.la", "*.a"],
+    "modules": [
+        {
+            "name": "gtksourceview",
+            "sources": [
+                {
+                    "type": "archive",
+                    "url": 
"https://download.gnome.org/sources/gtksourceview/3.20/gtksourceview-3.20.3.tar.xz";,
+                    "sha256": "53069c6e2645716d5dc3dc875b2fe7aacbe70e6560f8dc01c66597231886a8df"
+                }
+            ]
+        },
+        {
+            "name": "gspell",
+            "sources": [
+                {
+                    "type": "archive",
+                    "url": "https://download.gnome.org/sources/gspell/1.0/gspell-1.0.2.tar.xz";,
+                    "sha256": "80d859a2ee7cf5184bd2b3dc696a0ec1b899ff67b606177e1ef87ef945ff92bb"
+                }
+            ]
+        },
+        {
+            "name": "libgee",
+            "build-options" : {
+                "env": {
+                    "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR": "/app/share/gir-1.0",
+                    "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR": "/app/lib/girepository-1.0"
+                }
+            },
+            "sources": [
+                {
+                    "type": "archive",
+                    "url": "https://download.gnome.org/sources/libgee/0.18/libgee-0.18.0.tar.xz";,
+                    "sha256": "4ad99ef937d071b4883c061df40bfe233f7649d50c354cf81235f180b4244399"
+                }
+        ]
+      },
+        {
+            "name": "latexila",
+            "sources": [
+                {
+                    "type": "archive",
+                    "url": "https://download.gnome.org/sources/latexila/3.20/latexila-3.20.0.tar.xz";,
+                    "sha256": "fa0a7023b522339a1d5af57121bbed410651f4772b76a7139a3ab1c2ab49f85c"
+                }
+            ]
+        }
+    ]
+}
diff --git a/flatpak/run-app.sh b/flatpak/run-app.sh
new file mode 100755
index 0000000..73cfee2
--- /dev/null
+++ b/flatpak/run-app.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+flatpak run org.gnome.latexila


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