{
 "app_id": "com.donhopkins.Micropolis",
 "source_url": "https://raw.githubusercontent.com/flathub/com.donhopkins.Micropolis/master/com.donhopkins.Micropolis.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:07:14.087841+00:00",
 "manifest": {
  "id": "com.donhopkins.Micropolis",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "micropolis",
  "rename-desktop-file": "Micropolis.desktop",
  "rename-icon": "micropolis",
  "finish-args": [
   "--share=ipc",
   "--device=dri",
   "--socket=pulseaudio",
   "--socket=x11"
  ],
  "modules": [
   "shared-modules/SDL/sdl12-compat.json",
   "shared-modules/SDL/SDL_mixer-1.2.12.json",
   {
    "name": "micropolis",
    "buildsystem": "autotools",
    "no-parallel-make": true,
    "subdir": "src",
    "no-autogen": true,
    "license-files": [
     "COPYING",
     "MicropolisPublicNameLicense.md"
    ],
    "post-install": [
     "install -d -m755 ${FLATPAK_DEST}/bin",
     "install -d -m755 ${FLATPAK_DEST}/share/micropolis",
     "install -d -m755 ${FLATPAK_DEST}/lib/micropolis",
     "install -m755 sim/sim ${FLATPAK_DEST}/lib/micropolis",
     "install -m755 ../Micropolis ${FLATPAK_DEST}/bin/micropolis",
     "cp -a ../cities ../images ../res ${FLATPAK_DEST}/share/micropolis",
     "chmod +x ${FLATPAK_DEST}/share/micropolis/res/sounds/player",
     "install -Dm644 ../Micropolis.desktop -t ${FLATPAK_DEST}/share/applications/",
     "install -Dm644 ../micropolis.png -t ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/",
     "install -Dm644 ../com.donhopkins.Micropolis.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://git.zerfleddert.de/git/micropolis",
      "commit": "6f873e16d6a1a8f6f59c1e5a75ec5f52ce5c89b6"
     },
     {
      "type": "patch",
      "paths": [
       "patches/micropolis_git-1752177932.patch",
       "patches/fhs-path.patch"
      ]
     },
     {
      "type": "file",
      "path": "micropolis.png"
     },
     {
      "type": "file",
      "path": "com.donhopkins.Micropolis.metainfo.xml"
     }
    ]
   }
  ]
 }
}