[gnome-games] flatpak: Add flatpak-builder manifest



commit 900d1121b2fd62da43c38f4be4b2553b306653ea
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Mar 1 10:11:25 2017 +0100

    flatpak: Add flatpak-builder manifest
    
    Add the flatpak-builder manifest for Games as well as the needed
    Libretro core descriptors and custom makefiles.
    
    This allows to remove these same files from the gnome-apps-nightly repo,
    see https://wiki.gnome.org/Initiatives/GnomeGoals/FlatpakManifests for
    more details about this initiative.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779403

 flatpak/libretro-cores/bsnes_balanced.libretro     |   11 ++
 flatpak/libretro-cores/gambatte.libretro           |   14 ++
 flatpak/libretro-cores/libretro-bsnes.json         |   30 +++++
 flatpak/libretro-cores/libretro-gambatte.json      |   27 ++++
 flatpak/libretro-cores/libretro-mednafen_ngp.json  |   27 ++++
 .../libretro-cores/libretro-mednafen_pce_fast.json |   27 ++++
 flatpak/libretro-cores/libretro-nestopia.json      |   29 ++++
 flatpak/libretro-cores/libretro-pcsx_rearmed.json  |   33 +++++
 flatpak/libretro-cores/mednafen_ngp.libretro       |   11 ++
 flatpak/libretro-cores/mednafen_pce_fast.libretro  |   20 +++
 flatpak/libretro-cores/nestopia.libretro           |   21 +++
 .../libretro-cores/pcsx_rearmed-Makefile.install   |    4 +
 flatpak/libretro-cores/pcsx_rearmed.libretro       |   27 ++++
 flatpak/org.gnome.Games.json                       |  135 ++++++++++++++++++++
 14 files changed, 416 insertions(+), 0 deletions(-)
---
diff --git a/flatpak/libretro-cores/bsnes_balanced.libretro b/flatpak/libretro-cores/bsnes_balanced.libretro
new file mode 100644
index 0000000..b105c53
--- /dev/null
+++ b/flatpak/libretro-cores/bsnes_balanced.libretro
@@ -0,0 +1,11 @@
+[Libretro]
+Type=Emulator
+Version=1.0
+Name=bsnes Balanced
+Module=bsnes_balanced_libretro.so
+LibretroVersion=1
+Authors=byuu;
+License=GPL-3.0;
+
+[Platform:SuperNintendoEntertainmentSystem]
+MimeType=application/vnd.nintendo.snes.rom;
diff --git a/flatpak/libretro-cores/gambatte.libretro b/flatpak/libretro-cores/gambatte.libretro
new file mode 100644
index 0000000..64b2c8e
--- /dev/null
+++ b/flatpak/libretro-cores/gambatte.libretro
@@ -0,0 +1,14 @@
+[Libretro]
+Type=Emulator
+Version=1.0
+Name=Gambatte
+Module=gambatte_libretro.so
+LibretroVersion=1
+Authors=Sinamas;
+License=GPL-2.0+;
+
+[Platform:GameBoy]
+MimeType=application/x-gameboy-rom;
+
+[Platform:GameBoyColor]
+MimeType=application/x-gameboy-color-rom;
diff --git a/flatpak/libretro-cores/libretro-bsnes.json b/flatpak/libretro-cores/libretro-bsnes.json
new file mode 100644
index 0000000..d89e384
--- /dev/null
+++ b/flatpak/libretro-cores/libretro-bsnes.json
@@ -0,0 +1,30 @@
+        {
+            "name": "libretro-bsnes",
+            "no-autogen": true,
+            "make-args": [
+                "prefix=/app",
+                "core_installdir=/app/lib/libretro",
+                "profile=balanced"
+            ],
+            "make-install-args": [
+                "prefix=/app",
+                "core_installdir=/app/lib/libretro",
+                "profile=balanced"
+            ],
+            "post-install": [
+                /* TODO: Send that upstream */
+                "mkdir -p /app/lib/libretro/",
+                "install -m644 -p bsnes_balanced.libretro /app/lib/libretro/"
+            ],
+            "sources": [
+                {
+                    "type": "git",
+                    "url": "https://github.com/libretro/bsnes-libretro.git";,
+                    "branch": "libretro"
+                },
+                {
+                    "type": "file",
+                    "path": "libretro-cores/bsnes_balanced.libretro"
+                }
+            ]
+        }
diff --git a/flatpak/libretro-cores/libretro-gambatte.json b/flatpak/libretro-cores/libretro-gambatte.json
new file mode 100644
index 0000000..e6982fe
--- /dev/null
+++ b/flatpak/libretro-cores/libretro-gambatte.json
@@ -0,0 +1,27 @@
+        {
+            "name": "libretro-gambatte",
+            "no-autogen": true,
+            "make-args": [
+                "prefix=/app",
+                "core_installdir=/app/lib/libretro"
+            ],
+            "make-install-args": [
+                "prefix=/app",
+                "core_installdir=/app/lib/libretro"
+            ],
+            "post-install": [
+                /* TODO: Send that upstream */
+                "mkdir -p /app/lib/libretro/",
+                "install -m644 -p gambatte.libretro /app/lib/libretro/"
+            ],
+            "sources": [
+                {
+                    "type": "git",
+                    "url": "https://github.com/libretro/gambatte-libretro.git";
+                },
+                {
+                    "type": "file",
+                    "path": "libretro-cores/gambatte.libretro"
+                }
+            ]
+        }
diff --git a/flatpak/libretro-cores/libretro-mednafen_ngp.json 
b/flatpak/libretro-cores/libretro-mednafen_ngp.json
new file mode 100644
index 0000000..816d553
--- /dev/null
+++ b/flatpak/libretro-cores/libretro-mednafen_ngp.json
@@ -0,0 +1,27 @@
+        {
+            "name": "libretro-mednafen_ngp",
+            "no-autogen": true,
+            "make-args": [
+                "prefix=/app",
+                "core_installdir=/app/lib/libretro"
+            ],
+            "make-install-args": [
+                "prefix=/app",
+                "core_installdir=/app/lib/libretro"
+            ],
+            "post-install": [
+                /* TODO: Send that upstream */
+                "mkdir -p /app/lib/libretro/",
+                "install -m644 -p mednafen_ngp.libretro /app/lib/libretro/"
+            ],
+            "sources": [
+                {
+                    "type": "git",
+                    "url": "https://github.com/Kekun/beetle-ngp-libretro";
+                },
+                {
+                    "type": "file",
+                    "path": "libretro-cores/mednafen_ngp.libretro"
+                }
+            ]
+        }
diff --git a/flatpak/libretro-cores/libretro-mednafen_pce_fast.json 
b/flatpak/libretro-cores/libretro-mednafen_pce_fast.json
new file mode 100644
index 0000000..1a65989
--- /dev/null
+++ b/flatpak/libretro-cores/libretro-mednafen_pce_fast.json
@@ -0,0 +1,27 @@
+        {
+            "name": "libretro-mednafen_pce_fast",
+            "no-autogen": true,
+            "make-args": [
+                "prefix=/app",
+                "core_installdir=/app/lib/libretro"
+            ],
+            "make-install-args": [
+                "prefix=/app",
+                "core_installdir=/app/lib/libretro"
+            ],
+            "post-install": [
+                /* TODO: Send that upstream */
+                "mkdir -p /app/lib/libretro/",
+                "install -m644 -p mednafen_pce_fast.libretro /app/lib/libretro/"
+            ],
+            "sources": [
+                {
+                    "type": "git",
+                    "url": "https://github.com/Kekun/beetle-pce-fast-libretro";
+                },
+                {
+                    "type": "file",
+                    "path": "libretro-cores/mednafen_pce_fast.libretro"
+                }
+            ]
+        }
diff --git a/flatpak/libretro-cores/libretro-nestopia.json b/flatpak/libretro-cores/libretro-nestopia.json
new file mode 100644
index 0000000..64bd8a2
--- /dev/null
+++ b/flatpak/libretro-cores/libretro-nestopia.json
@@ -0,0 +1,29 @@
+        {
+            "name": "libretro-nestopia",
+            "no-autogen": true,
+            "subdir": "libretro",
+            "make-args": [
+                "prefix=/app",
+                "core_installdir=/app/lib/libretro"
+            ],
+            "make-install-args": [
+                "prefix=/app",
+                "core_installdir=/app/lib/libretro"
+            ],
+            "post-install": [
+                /* TODO: Send that upstream */
+                "mkdir -p /app/lib/libretro/",
+                "install -m644 -p nestopia.libretro /app/lib/libretro/"
+            ],
+            "sources": [
+                {
+                    "type": "git",
+                    "url": "https://github.com/bochecha/nestopia.git";
+                },
+                {
+                    "type": "file",
+                    "path": "libretro-cores/nestopia.libretro",
+                    "dest-filename": "libretro/nestopia.libretro"
+                }
+            ]
+        }
diff --git a/flatpak/libretro-cores/libretro-pcsx_rearmed.json 
b/flatpak/libretro-cores/libretro-pcsx_rearmed.json
new file mode 100644
index 0000000..011cbc8
--- /dev/null
+++ b/flatpak/libretro-cores/libretro-pcsx_rearmed.json
@@ -0,0 +1,33 @@
+        {
+            "name": "libretro-pcsx_rearmed",
+            "no-autogen": true,
+            "rm-configure": true,
+            "make-args": [
+                "--makefile=Makefile.install",
+                "prefix=/app"
+            ],
+            "make-install-args": [
+                "--makefile=Makefile.install",
+                "prefix=/app"
+            ],
+            "post-install": [
+                /* TODO: Send that upstream */
+                "mkdir -p /app/lib/libretro/",
+                "install -m644 -p pcsx_rearmed.libretro /app/lib/libretro/"
+            ],
+            "sources": [
+                {
+                    "type": "git",
+                    "url": "https://github.com/libretro/pcsx_rearmed";
+                },
+                {
+                    "type": "file",
+                    "path": "libretro-cores/pcsx_rearmed-Makefile.install",
+                    "dest-filename": "Makefile.install"
+                },
+                {
+                    "type": "file",
+                    "path": "libretro-cores/pcsx_rearmed.libretro"
+                }
+            ]
+        }
diff --git a/flatpak/libretro-cores/mednafen_ngp.libretro b/flatpak/libretro-cores/mednafen_ngp.libretro
new file mode 100644
index 0000000..fa68a7a
--- /dev/null
+++ b/flatpak/libretro-cores/mednafen_ngp.libretro
@@ -0,0 +1,11 @@
+[Libretro]
+Type=Emulator
+Version=1.0
+Name=Beetle NeoPop
+Module=mednafen_ngp_libretro.so
+LibretroVersion=1
+Authors=neopop_uk;Mednafen Team;
+License=GPL-2.0+;
+
+[Platform:NeoGeoPocket]
+MimeType=application/x-neo-geo-pocket-rom;
diff --git a/flatpak/libretro-cores/mednafen_pce_fast.libretro 
b/flatpak/libretro-cores/mednafen_pce_fast.libretro
new file mode 100644
index 0000000..6c580dc
--- /dev/null
+++ b/flatpak/libretro-cores/mednafen_pce_fast.libretro
@@ -0,0 +1,20 @@
+[Libretro]
+Type=Emulator
+Version=1.0
+Name=Beetle PCE Fast
+Module=mednafen_pce_fast_libretro.so
+LibretroVersion=1
+Authors=Mednafen Team;
+License=GPL-2.0+;
+
+[Platform:TurboGrafx16]
+MimeType=application/x-pc-engine-rom;
+
+[Platform:TurboGrafxCD]
+MimeType=application/x-cue;
+Firmwares=SuperSystemCard3;
+
+[Firmware:SuperSystemCard3]
+Path=syscard3.pce
+MD5=ff1a674273fe3540ccef576376407d1d
+Mandatory=true
diff --git a/flatpak/libretro-cores/nestopia.libretro b/flatpak/libretro-cores/nestopia.libretro
new file mode 100644
index 0000000..d160c05
--- /dev/null
+++ b/flatpak/libretro-cores/nestopia.libretro
@@ -0,0 +1,21 @@
+[Libretro]
+Type=Emulator
+Version=1.0
+Name=Nestopia UE
+Module=nestopia_libretro.so
+LibretroVersion=1
+Authors=Martin Freij;R. Belmont;R. Danbrook;
+License=GPL-2.0+;
+
+[Platform:NintendoEntertainmentSystem]
+MimeType=application/x-nes-rom;
+
+[Platform:FamicomDiskSystem]
+MimeType=application/x-fds-disk;
+Firmwares=FamicomDiskSystem;
+
+[Firmware:FamicomDiskSystem]
+Path=disksys.rom
+MD5=ca30b50f880eb660a320674ed365ef7a
+SHA-512=d7692af63b107b7e79ccf0d90e5ff7e70325e3196a41b6d4d83aaf8ffa5ca976351f8f31bcb1d497c02f7c699e94e77c27a0813f72aa96b576685acaae5bdad5
+Mandatory=true
diff --git a/flatpak/libretro-cores/pcsx_rearmed-Makefile.install 
b/flatpak/libretro-cores/pcsx_rearmed-Makefile.install
new file mode 100644
index 0000000..c920c1b
--- /dev/null
+++ b/flatpak/libretro-cores/pcsx_rearmed-Makefile.install
@@ -0,0 +1,4 @@
+include Makefile.libretro
+
+install:
+       install -p -m755 pcsx_rearmed_libretro.so $(DESTDIR)$(prefix)/lib/libretro
diff --git a/flatpak/libretro-cores/pcsx_rearmed.libretro b/flatpak/libretro-cores/pcsx_rearmed.libretro
new file mode 100644
index 0000000..9c83cc0
--- /dev/null
+++ b/flatpak/libretro-cores/pcsx_rearmed.libretro
@@ -0,0 +1,27 @@
+[Libretro]
+Type=Emulator
+Version=1.0
+Name=PCSX ReARMed
+Module=pcsx_rearmed_libretro.so
+LibretroVersion=1
+Authors=PCSX Team;notaz;Exophase;
+License=GPL-2.0+;
+
+[Platform:PlayStation]
+MimeType=application/x-cue;application/x-playstation-rom;
+Firmwares=PlayStationE;PlayStationJ;PlayStationU;
+
+[Firmware:PlayStationE]
+Path=scph5502.bin
+MD5=32736f17079d0b2b7024407c39bd3050
+Mandatory=false
+
+[Firmware:PlayStationJ]
+Path=scph5500.bin
+MD5=8dd7d5296a650fac7319bce665a6a53c
+Mandatory=false
+
+[Firmware:PlayStationU]
+Path=scph5501.bin
+MD5=490f666e1afb15b7362b406ed1cea246
+Mandatory=false
diff --git a/flatpak/org.gnome.Games.json b/flatpak/org.gnome.Games.json
new file mode 100644
index 0000000..328d7f0
--- /dev/null
+++ b/flatpak/org.gnome.Games.json
@@ -0,0 +1,135 @@
+{
+    "app-id": "org.gnome.Games",
+    "runtime": "org.gnome.Platform",
+    "runtime-version": "master",
+    "sdk": "org.gnome.Sdk",
+    "command": "gnome-games",
+    "tags": ["nightly"],
+    "desktop-file-name-prefix": "(Nightly) ",
+    "finish-args": [
+        /* X11 + XShm access */
+        "--share=ipc", "--socket=x11",
+        /* Wayland access */
+        "--socket=wayland",
+        /* PulseAudio access */
+        "--device=dri", "--socket=pulseaudio",
+        /* Tracker access */
+        "--talk-name=org.freedesktop.Tracker1",
+        /* 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",
+        /* Needed to get the games info from The Games DB */
+        "--share=network",
+        /* Needed for joypads, until we have a proper portal */
+        "--device=all",
+        /* Needed to find the ROMs */
+        "--filesystem=home:ro"
+    ],
+    "build-options" : {
+        "cflags": "-O2 -g",
+        "cxxflags": "-O2 -g"
+    },
+    "cleanup": ["/include", "/lib/pkgconfig",
+                "/share/pkgconfig", "/share/aclocal",
+                "/man", "/share/man", "/share/gtk-doc",
+                "*.la", "*.a",
+                "/lib/girepository-1.0",
+                "/share/dbus-1", "/share/doc", "/share/gir-1.0"
+    ],
+    "modules": [
+        /* Emulator cores for libretro
+
+           We build them first, because some of them are very big, and they
+           change more rarely than the rest of the modules. */
+        "libretro-cores/libretro-bsnes.json",
+        "libretro-cores/libretro-gambatte.json",
+        "libretro-cores/libretro-mednafen_ngp.json",
+        "libretro-cores/libretro-mednafen_pce_fast.json",
+        "libretro-cores/libretro-nestopia.json",
+        "libretro-cores/libretro-pcsx_rearmed.json",
+        /* End libretro cores */
+        {
+            "name": "retro-gtk",
+            "config-opts": [
+                "--disable-static"
+            ],
+            "sources": [
+                {
+                    "type": "git",
+                    "url": "https://git.gnome.org/browse/retro-gtk";
+                }
+            ]
+        },
+        "org.lua.modules.json",
+        {
+            "name": "grilo",
+            "config-opts": [
+                "--enable-grl-net",
+                "--disable-grl-pls",
+                "--disable-gtk-doc",
+                "--disable-static"
+            ],
+            "sources": [
+                {
+                    "type": "git",
+                    "url": "https://git.gnome.org/browse/grilo";
+                }
+            ],
+            "cleanup": [ "/include", "/bin" ]
+        },
+        /* XXX Remove the Lua sources we won't use */
+        {
+            "name": "grilo-plugins",
+            "config-opts": [
+                "--disable-goa", "--disable-filesystem",
+                "--disable-optical-media", "--disable-youtube",
+                "--disable-bookmarks", "--disable-metadata-store",
+                "--disable-vimeo", "--disable-tracker",
+                "--disable-localmetadata", "--disable-dleyna",
+                "--disable-thetvdb", "--disable-tmdb",
+                "--disable-freebox", "--disable-opensubtitles",
+                "--disable-gravatar", "--disable-jamendo", "--disable-raitv",
+                "--disable-magnatune", "--disable-shoutcast",
+                "--enable-lua-factory"
+            ],
+            "sources": [
+                {
+                    "type": "git",
+                    "url": "https://git.gnome.org/browse/grilo-plugins";
+                }
+            ],
+            "cleanup": [ "/include" ]
+        },
+        {
+            "name": "tracker",
+            "config-opts": [ "--disable-miner-apps", "--disable-static",
+                             "--disable-tracker-extract", "--disable-tracker-needle",
+                             "--disable-tracker-preferences", "--disable-artwork",
+                             "--disable-tracker-writeback", "--disable-miner-user-guides"],
+            "sources": [
+                {
+                    "type": "git",
+                    "url": "https://git.gnome.org/browse/tracker";
+                }
+            ]
+        },
+        {
+            "name": "libevdev",
+            "sources": [
+                {
+                     "type": "git",
+                     "url": "https://anongit.freedesktop.org/git/libevdev.git";
+                }
+            ]
+        },
+        {
+            "name": "gnome-games",
+            "sources": [
+                {
+                    "type": "git",
+                    "url": "https://git.gnome.org/browse/gnome-games";
+                }
+            ]
+        }
+    ]
+}


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