{
 "app_id": "net.fsuae.FS-UAE",
 "source_url": "https://raw.githubusercontent.com/flathub/net.fsuae.FS-UAE/master/net.fsuae.FS-UAE.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=all",
  "--filesystem=home",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:13:26.620514+00:00",
 "manifest": {
  "app-id": "net.fsuae.FS-UAE",
  "command": "fs-uae",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "base": "com.riverbankcomputing.PyQt.BaseApp",
  "base-version": "5.15-25.08",
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "build-options": {
   "env": [
    "BASEAPP_REMOVE_WEBENGINE=1"
   ]
  },
  "rename-desktop-file": "fs-uae.desktop",
  "rename-mime-file": "fs-uae.xml",
  "rename-icon": "fs-uae",
  "finish-args": [
   "--device=all",
   "--filesystem=home",
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio",
   "--socket=x11"
  ],
  "modules": [
   {
    "name": "libmpeg2",
    "config-opts": [
     "--disable-static"
    ],
    "rm-configure": true,
    "cleanup": [
     "/bin",
     "/include",
     "/lib/pkgconfig",
     "/lib/*.la"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/flathub/net.fsuae.FS-UAE/releases/download/deps/libmpeg2-0.5.1.tar.gz",
      "sha256": "dee22e893cb5fc2b2b6ebd60b88478ab8556cb3b93f9a0d7ce8f3b61851871d4",
      "mirror-urls": [
       "http://libmpeg2.sourceforge.net/files/libmpeg2-0.5.1.tar.gz",
       "https://download.videolan.org/contrib/libmpeg2/libmpeg2-0.5.1.tar.gz",
       "https://fossies.org/linux/privat/old/libmpeg2-0.5.1.tar.gz"
      ]
     },
     {
      "type": "script",
      "dest-filename": "autogen.sh",
      "commands": [
       "cp -p /usr/share/automake-*/config.{subguess} .",
       "autoreconf -vfi"
      ]
     }
    ]
   },
   {
    "name": "fs-uae",
    "build-options": {
     "arch": {
      "aarch64": {
       "config-opts": [
        "--disable-jit"
       ]
      }
     }
    },
    "no-autogen": true,
    "post-install": [
     "desktop-file-edit --set-key=NoDisplay --set-value=false /app/share/applications/fs-uae.desktop"
    ],
    "cleanup": [
     "/share/man",
     "/share/doc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://fs-uae.net/files/FS-UAE/Stable/3.1.66/fs-uae-3.1.66.tar.xz",
      "sha256": "606e1868b500413d69bd33bb469f8fd08d6c08988801f17b7dd022f3fbe23832"
     },
     {
      "type": "patch",
      "path": "fs-uae-install.patch"
     },
     {
      "type": "shell",
      "commands": [
       "autoreconf -vfi"
      ]
     }
    ]
   },
   {
    "name": "fs-uae-launcher",
    "make-install-args": [
     "DESTDIR=/app"
    ],
    "no-autogen": true,
    "post-install": [
     "cp -a /app/share/runtime/applications /app/share/runtime/icons /app/share/",
     "mv /app/share/applications/fs-uae-launcher.desktop /app/share/applications/${FLATPAK_ID}.Launcher.desktop",
     "mv /app/share/icons/hicolor/64x64/apps/fs-uae-launcher.png /app/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.Launcher.png",
     "mv /app/share/icons/hicolor/128x128/apps/fs-uae-launcher.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.Launcher.png",
     "desktop-file-edit --set-icon=net.fsuae.FS-UAE.Launcher /app/share/applications/${FLATPAK_ID}.Launcher.desktop",
     "install -D -m644 -t /app/share/appdata/ ${FLATPAK_ID}.appdata.xml"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://fs-uae.net/files/FS-UAE-Launcher/Stable/3.1.66/fs-uae-launcher-3.1.66.tar.xz",
      "sha256": "47f09069e5b474c0295e989e13edef0eb76c5982fdefd96ec62e0b5363a08ebe"
     },
     {
      "type": "file",
      "path": "net.fsuae.FS-UAE.appdata.xml"
     },
     {
      "type": "shell",
      "commands": [
       "sed 's/prefix := .*/prefix := /g' -i ./Makefile",
       "sed 's/cp -a share\\/\\* $(DESTDIR)$(prefix)\\/share/cp -fa share\\/\\* $(DESTDIR)$(prefix)\\/share\\/runtime/g' -i ./Makefile"
      ]
     }
    ],
    "modules": [
     {
      "name": "requests",
      "buildsystem": "simple",
      "build-commands": [
       "pip3 install --prefix=/app --no-index --find-links=file://${PWD} --no-build-isolation requests"
      ],
      "sources": [
       {
        "type": "file",
        "url": "https://files.pythonhosted.org/packages/6d/d5/e8258b334c9eb8eb78e31be92ea0d5da83ddd9385dc967dd92737604d239/urllib3-1.26.11.tar.gz",
        "sha256": "ea6e8fb210b19d950fab93b60c9009226c63a28808bc8386e05301e25883ac0a"
       },
       {
        "type": "file",
        "url": "https://files.pythonhosted.org/packages/04/a2/d918dcd22354d8958fe113e1a3630137e0fc8b44859ade3063982eacd2a4/idna-3.3-py3-none-any.whl",
        "sha256": "84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff"
       },
       {
        "type": "file",
        "url": "https://files.pythonhosted.org/packages/94/69/64b11e8c2fb21f08634468caef885112e682b0ebe2908e74d3616eb1c113/charset_normalizer-2.1.0-py3-none-any.whl",
        "sha256": "5189b6f22b01957427f35b6a08d9a0bc45b46d3788ef5a92e978433c7a35f8a5"
       },
       {
        "type": "file",
        "url": "https://files.pythonhosted.org/packages/e9/06/d3d367b7af6305b16f0d28ae2aaeb86154fa91f144f036c2d5002a5a202b/certifi-2022.6.15-py3-none-any.whl",
        "sha256": "fe86415d55e84719d75f8b69414f6438ac3547d2078ab91b67e779ef69378412"
       },
       {
        "type": "file",
        "url": "https://files.pythonhosted.org/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py3-none-any.whl",
        "sha256": "8fefa2a1a1365bf5520aac41836fbee479da67864514bdb821f31ce07ce65349"
       }
      ]
     },
     {
      "name": "lhafile",
      "buildsystem": "simple",
      "build-commands": [
       "/usr/bin/pip3 --disable-pip-version-check install --prefix=/app --verbose --no-build-isolation ."
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/FrodeSolheim/python-lhafile/archive/v0.2.2.tar.gz",
        "sha256": "18396276b77d8c7e094f169d3b2471e60de3d412a2454a0f73c452a54817ee68"
       }
      ]
     }
    ]
   }
  ]
 }
}