{
 "app_id": "com.github.reduz.ChibiTracker",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.reduz.ChibiTracker/master/com.github.reduz.ChibiTracker.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=home"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:07:50.049311+00:00",
 "manifest": {
  "app-id": "com.github.reduz.ChibiTracker",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "chibitracker",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--socket=pulseaudio",
   "--filesystem=home",
   "--device=dri"
  ],
  "cleanup": [
   "/bin/sdl-config",
   "/include",
   "/lib/*.a",
   "/lib/pkgconfig",
   "/share/aclocal"
  ],
  "modules": [
   "shared-modules/SDL/sdl12-compat.json",
   {
    "name": "scons",
    "buildsystem": "simple",
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "sha256": "e2d78aa56e4646e5dbaf50c0758c6d1e4b0418464d8d6d07a09beb6cf257538f",
      "url": "https://downloads.sourceforge.net/project/scons/scons/4.9.1/SCons-4.9.1.tar.gz"
     }
    ],
    "build-commands": [
     "pip3 install --no-index --no-build-isolation --prefix=${FLATPAK_DEST} ."
    ]
   },
   {
    "name": "chibitracker",
    "buildsystem": "simple",
    "build-commands": [
     "scons",
     "scons install prefix=${FLATPAK_DEST}",
     "install -Dm644 com.github.reduz.ChibiTracker.metainfo.xml ${FLATPAK_DEST}/share/metainfo/com.github.reduz.ChibiTracker.metainfo.xml",
     "install -Dm644 com.github.reduz.ChibiTracker.desktop ${FLATPAK_DEST}/share/applications/com.github.reduz.ChibiTracker.desktop",
     "install -Dm644 program/cticon.png ${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/com.github.reduz.ChibiTracker.png",
     "ICON_IN='program/cticon.png'\nICON_OUT='com.github.reduz.ChibiTracker.png'\nfor s in {32,64,128,256,512} ; do\n  SIZE=\"${s}x${s}\"\n  ffmpeg -y -i \"${ICON_IN}\" -update 1 -s \"${SIZE}\" -sws_flags neighbor \"${ICON_OUT}\"\n  install -p -Dm644 \"${ICON_OUT}\" -t \"${FLATPAK_DEST}/share/icons/hicolor/${SIZE}/apps/\"\ndone\n"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/reduz/chibitracker.git",
      "commit": "735cf514b764b9388f53637f6ba691c991603577"
     },
     {
      "type": "patch",
      "path": "patches/type-fix.patch"
     },
     {
      "type": "file",
      "path": "com.github.reduz.ChibiTracker.desktop"
     },
     {
      "type": "file",
      "path": "com.github.reduz.ChibiTracker.metainfo.xml"
     }
    ]
   }
  ]
 }
}