{
 "app_id": "com.github.serosis.UQM_MegaMod",
 "source_url": "https://raw.githubusercontent.com/rlac/flatpak-uqm-megamod/master/com.github.serosis.UQM_MegaMod.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "20.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--socket=x11",
  "--device=dri",
  "--share=ipc",
  "--socket=pulseaudio",
  "--device=all",
  "--persist=.uqm-megamod"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T17:41:46.042669+00:00",
 "manifest": {
  "app-id": "com.github.serosis.UQM_MegaMod",
  "branch": "stable",
  "add-extensions": {
   "com.github.serosis.UQM_MegaMod.AddOn": {
    "version": "0.8.0.85",
    "directory": "extensions",
    "merge-dirs": "addons",
    "subdirectories": true,
    "autodelete": true,
    "no-autodownload": true
   }
  },
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "20.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "launch.sh",
  "finish-args": [
   "--share=network",
   "--socket=x11",
   "--device=dri",
   "--share=ipc",
   "--socket=pulseaudio",
   "--device=all",
   "--persist=.uqm-megamod"
  ],
  "modules": [
   {
    "name": "glu",
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "ftp://ftp.freedesktop.org/pub/mesa/glu/glu-9.0.1.tar.gz",
      "sha256": "f6f484cfcd51e489afe88031afdea1e173aa652697e4c19ddbcb8260579a10f7"
     }
    ],
    "cleanup": [
     "/include",
     "/lib/*.la",
     "/lib/*.a",
     "/lib/pkgconfig"
    ]
   },
   {
    "name": "libmikmod",
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/mikmod/files/libmikmod/3.3.11.1/libmikmod-3.3.11.1.tar.gz",
      "sha256": "ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19"
     }
    ],
    "cleanup": [
     "/bin",
     "/share/man",
     "/share/info",
     "/share/aclocal",
     "/include",
     "/lib/*.la",
     "/lib/*.a",
     "/lib/pkgconfig"
    ]
   },
   {
    "name": "desktop-resources",
    "sources": [
     {
      "type": "file",
      "path": "com.github.serosis.UQM_MegaMod.png"
     },
     {
      "type": "file",
      "path": "com.github.serosis.UQM_MegaMod.desktop"
     },
     {
      "type": "file",
      "path": "com.github.serosis.UQM_MegaMod.appdata.xml"
     },
     {
      "type": "file",
      "path": "launch.sh"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/share/applications",
     "cp com.github.serosis.UQM_MegaMod.desktop /app/share/applications/com.github.serosis.UQM_MegaMod.desktop",
     "mkdir -p /app/share/icons/hicolor/256x256/apps",
     "cp com.github.serosis.UQM_MegaMod.png /app/share/icons/hicolor/256x256/apps/com.github.serosis.UQM_MegaMod.png",
     "mkdir -p /app/share/appdata",
     "cp com.github.serosis.UQM_MegaMod.appdata.xml /app/share/appdata/com.github.serosis.UQM_MegaMod.appdata.xml",
     "cp launch.sh /app/bin && chmod a+x /app/bin/launch.sh"
    ]
   },
   {
    "name": "UQM-MegaMod",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Serosis/UQM-MegaMod.git",
      "commit": "4605cf8cf121e35eeead3b7df8214c85eeac4b42",
      "tag": "0.8.0.85"
     },
     {
      "type": "file",
      "url": "http://files.serosis.net/MegaMod/0.8.0.85/mm-0.8.0.85-content.uqm",
      "sha256": "148df6b4f014193e478ac9d86b0d84ad7feab7bdaf8db76f7d7dc99025b9c509"
     }
    ],
    "build-options": {
     "env": {
      "INPUT_install_prefix_VALUE": "/app",
      "INPUT_install_bindir_VALUE": "/app/bin",
      "INPUT_install_libdir_VALUE": "/app/lib",
      "INPUT_install_sharedir_VALUE": "/app/share"
     }
    },
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p content/packages",
     "echo \"0.8.0.85\" > content/version",
     "cp mm-0.8.0.85-content.uqm content/packages",
     "./build.sh uqm",
     "./build.sh uqm install",
     "install -d /app/extensions/addons"
    ]
   }
  ]
 }
}