{
 "app_id": "re.sonny.Retro",
 "source_url": "https://raw.githubusercontent.com/flathub/re.sonny.Retro/master/re.sonny.Retro.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:17:20.151639+00:00",
 "manifest": {
  "id": "re.sonny.Retro",
  "runtime": "org.gnome.Platform",
  "runtime-version": "49",
  "sdk": "org.gnome.Sdk",
  "command": "re.sonny.Retro",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--device=dri",
   "--socket=wayland"
  ],
  "modules": [
   {
    "name": "libportal",
    "buildsystem": "meson",
    "config-opts": [
     "-Dbackend-gtk3=disabled",
     "-Dbackend-gtk4=enabled",
     "-Dbackend-qt5=disabled",
     "-Dbackend-qt6=disabled",
     "-Dvapi=false",
     "-Ddocs=false",
     "-Dtests=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/flatpak/libportal/releases/download/0.9.1/libportal-0.9.1.tar.xz",
      "sha256": "de801ee349ed3c255a9af3c01b1a401fab5b3fc1c35eb2fd7dfb35d4b8194d7f"
     }
    ]
   },
   {
    "name": "gjspack",
    "buildsystem": "simple",
    "build-commands": [
     "cd ./gjspack && ./bin/gjspack --appid=gjspack src/cli.js /app/bin"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/sonnyp/troll.git",
      "commit": "8b0275948eedec9ed0378f9bdda1aa4aac3062ba"
     }
    ]
   },
   {
    "name": "Retro",
    "buildsystem": "simple",
    "build-commands": [
     "install -D data/app.metainfo.xml /app/share/metainfo/re.sonny.Retro.metainfo.xml",
     "install -D data/app.desktop /app/share/applications/re.sonny.Retro.desktop",
     "install -D data/app.gschema.xml /app/share/glib-2.0/schemas/re.sonny.Retro.gschema.xml",
     "install -D data/icon-symbolic.svg /app/share/icons/hicolor/symbolic/apps/re.sonny.Retro-symbolic.svg",
     "install -D data/icon.svg /app/share/icons/hicolor/scalable/apps/re.sonny.Retro.svg",
     "cp -r data/fonts-DSEG_v046/ /app/share/fonts",
     "gjspack --appid=re.sonny.Retro --no-executable src/main.js /app/bin",
     "install -D src/bin.js /app/bin/re.sonny.Retro"
    ],
    "post-install": [
     "gtk-update-icon-cache --force --ignore-theme-index ${FLATPAK_DEST}/share/icons/hicolor",
     "glib-compile-schemas ${FLATPAK_DEST}/share/glib-2.0/schemas",
     "update-desktop-database ${FLATPAK_DEST}/share/applications",
     "fc-cache ${FLATPAK_DEST}/share/fonts"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/sonnyp/Retro.git",
      "tag": "v2.2",
      "commit": "b882d5e58fd5c8bb4145817ee929dec425534c95"
     }
    ]
   }
  ]
 }
}