{
 "app_id": "io.github.smcameron.space-nerds-in-space",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.smcameron.space-nerds-in-space/master/io.github.smcameron.space-nerds-in-space.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-17T16:12:16.794101+00:00",
 "manifest": {
  "id": "io.github.smcameron.space-nerds-in-space",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "snis.sh",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--device=dri",
   "--share=network",
   "--socket=pulseaudio"
  ],
  "cleanup": [
   "/patches"
  ],
  "modules": [
   {
    "name": "assets_not_hosted",
    "buildsystem": "simple",
    "build-commands": [
     "cp -R share ${FLATPAK_DEST}/share",
     "cp -R patches ${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/vpelss/snis_flatpak.git",
      "commit": "c73271d171c0d86d90cbfd8e7ca7df36730f6a41"
     }
    ]
   },
   {
    "name": "portaudio",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/PortAudio/portaudio.git",
      "tag": "v19.7.0",
      "commit": "147dd722548358763a8b649b3e4b41dfffbcfbb6"
     }
    ]
   },
   {
    "name": "nanotts_pico2wav",
    "buildsystem": "simple",
    "build-commands": [
     "patch svoxpico/picoapi.c  -i ${FLATPAK_DEST}/patches/picoapi_patch.txt",
     "mkdir -p ${FLATPAK_DEST}/bin/lang",
     "cd svoxpico; ./autogen.sh && ./configure --host `uname -m` && make -j",
     "make",
     "install -Dm755 nanotts ${FLATPAK_DEST}/bin/nanotts",
     "cp -R lang ${FLATPAK_DEST}/bin"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/gmn/nanotts.git",
      "commit": "d8b91f3d9d524c30f6fe8098ea7a0a638c889cf9"
     }
    ]
   },
   "shared-modules/lua5.3/lua-5.3.5.json",
   "shared-modules/glu/glu-9.json",
   {
    "name": "snis",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm755 snis_build.sh ${FLATPAK_DEST}/bin/snis_build.sh",
     "${FLATPAK_DEST}/bin/snis_build.sh",
     "install -Dm0644 share/applications/${FLATPAK_ID}.svg \"${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg\"",
     "install -Dm0644 share/metainfo/${FLATPAK_ID}.metainfo.xml.template \"${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml.template\"",
     "install -Dm0644 share/applications/${FLATPAK_ID}.desktop \"${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop\"",
     "install -Dm755 snis.sh ${FLATPAK_DEST}/bin/snis.sh"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "snis.sh",
      "commands": [
       "cd /app/bin",
       "exec ./snis_client --fullscreen --auto-download-assets"
      ]
     },
     {
      "type": "script",
      "dest-filename": "snis_build.sh",
      "commands": [
       "make install PREFIX=${FLATPAK_DEST} WITHVOICECHAT=yes"
      ],
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "script",
      "dest-filename": "snis_build.sh",
      "commands": [
       "make install PREFIX=${FLATPAK_DEST} WITHVOICECHAT=yes USE_GLES=1"
      ],
      "only-arches": [
       "aarch64"
      ]
     },
     {
      "type": "git",
      "url": "https://github.com/smcameron/space-nerds-in-space.git",
      "commit": "0fa59fb29a0fc68d35c8276e8bff827ab68ce2a0"
     }
    ]
   }
  ]
 }
}