summaryrefslogtreecommitdiffstats
path: root/pkg/linux/flatpak
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-08-30 09:51:05 -0700
committerGitHub <[email protected]>2016-08-30 09:51:05 -0700
commita464833a790f44f061f9de42a88f64e49156d422 (patch)
tree4ae1aeeb0d1e98640efe55c5f9db94a329f0de9f /pkg/linux/flatpak
parentaed230d055ce0e64dfc0a41e401a7a3e7e7fd7bb (diff)
LinGui: Add flatpak support (#231)
* LinGui: add --flatpak configure option For building a linux flatpak bundle * LinGui: add rules to build flatpak repo and bundles * LinGui: add flatpak compatible icon * LinGui: add flatpak compatible desktop file * LinGui: add flatpak appdata xml * pkg: disable building LinGui when creating cli flatpak * pkg: clean flatpak build cache when updating source package * pkg: fix source package build dependencies Fixes errors when the git ref being packaged changes and you have not manually deleted stage and pkg build directories.
Diffstat (limited to 'pkg/linux/flatpak')
-rw-r--r--pkg/linux/flatpak/fr.handbrake.HandBrakeCLI.json35
-rw-r--r--pkg/linux/flatpak/fr.handbrake.ghb.json42
2 files changed, 77 insertions, 0 deletions
diff --git a/pkg/linux/flatpak/fr.handbrake.HandBrakeCLI.json b/pkg/linux/flatpak/fr.handbrake.HandBrakeCLI.json
new file mode 100644
index 000000000..c006549b7
--- /dev/null
+++ b/pkg/linux/flatpak/fr.handbrake.HandBrakeCLI.json
@@ -0,0 +1,35 @@
+{
+ "app-id": "fr.handbrake.HandBrakeCLI",
+ "runtime": "org.gnome.Platform",
+ "runtime-version": "3.20",
+ "sdk": "org.gnome.Sdk",
+ "command": "HandBrakeCLI",
+ "finish-args": [
+ /* Needs video */
+ "--filesystem=xdg-videos",
+ /* Home */
+ "--filesystem=home"
+ ],
+ "modules": [
+ {
+ "name": "handbrake",
+ "no-autogen": true,
+ "config-opts": ["--flatpak", "--disable-gtk"],
+ "builddir": true,
+ "post-install": ["rm -rf /app/share"],
+ "sources": [
+ {
+ "type": "archive",
+ "path": "handbrake.tar.bz2",
+ "strip-components": 1
+ },
+ {
+ "type": "archive",
+ "path": "download.tgz",
+ "strip-components": 0
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/pkg/linux/flatpak/fr.handbrake.ghb.json b/pkg/linux/flatpak/fr.handbrake.ghb.json
new file mode 100644
index 000000000..34f578350
--- /dev/null
+++ b/pkg/linux/flatpak/fr.handbrake.ghb.json
@@ -0,0 +1,42 @@
+{
+ "app-id": "fr.handbrake.ghb",
+ "runtime": "org.gnome.Platform",
+ "runtime-version": "3.20",
+ "sdk": "org.gnome.Sdk",
+ "command": "ghb",
+ "finish-args": [
+ /* X11 + XShm access */
+ "--share=ipc", "--socket=x11",
+ /* Wayland access */
+ "--socket=wayland",
+ /* 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",
+ /* Needs video */
+ "--filesystem=xdg-videos",
+ /* Home */
+ "--filesystem=home"
+ ],
+ "modules": [
+ {
+ "name": "handbrake",
+ "no-autogen": true,
+ "config-opts": ["--flatpak"],
+ "builddir": true,
+ "post-install": ["rm /app/bin/HandBrakeCLI"],
+ "sources": [
+ {
+ "type": "archive",
+ "path": "handbrake.tar.bz2",
+ "strip-components": 1
+ },
+ {
+ "type": "archive",
+ "path": "download.tgz",
+ "strip-components": 0
+ }
+ ]
+ }
+ ]
+}
+