{
 "app_id": "org.sugarlabs.MathHurdler",
 "source_url": "https://raw.githubusercontent.com/flathub/org.sugarlabs.MathHurdler/master/org.sugarlabs.MathHurdler.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:16:42.185858+00:00",
 "manifest": {
  "app-id": "org.sugarlabs.MathHurdler",
  "base": "org.sugarlabs.BaseApp",
  "base-version": "26.04",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "separate-locales": false,
  "command": "sugarapp",
  "finish-args": [
   "--socket=x11",
   "--socket=pulseaudio",
   "--share=ipc",
   "--device=dri",
   "--env=SUGAR_BUNDLE_ID=org.sugarlabs.MathHurdler",
   "--env=SUGAR_BUNDLE_PATH=/app/share/sugar/activities/MathHurdler.activity"
  ],
  "cleanup": [
   "/include",
   "/lib/python3.**/pygame/examples",
   "/lib/python3.*/*/pygame/docs"
  ],
  "cleanup-commands": [
   "rm -rf /app/share/gir-1.0"
  ],
  "modules": [
   "shared-modules/SDL2/SDL2_ttf.json",
   "shared-modules/SDL2/SDL2_image.json",
   {
    "name": "pygame2",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pygame\" --no-build-isolation"
    ],
    "build-options": {
     "env": {
      "PORTMIDI_INC_PORTTIME": "1",
      "PYGAME_EXTRA_BASE": "/app"
     },
     "arch": {
      "aarch64": {
       "env": {
        "ORIGLIBDIRS": "/lib:/lib64:/lib/aarch64-linux-gnu"
       }
      },
      "x86_64": {
       "env": {
        "ORIGLIBDIRS": "/lib:/lib64:/lib/x86_64-linux-gnu"
       }
      }
     }
    },
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/49/cc/08bba60f00541f62aaa252ce0cfbd60aebd04616c0b9574f755b583e45ae/pygame-2.6.1.tar.gz",
      "sha256": "56fb02ead529cee00d415c3e007f75e0780c655909aaa8e8bf616ee09c9feb1f",
      "x-checker-data": {
       "type": "pypi",
       "name": "pygame"
      }
     }
    ]
   },
   {
    "name": "MathHurdler",
    "buildsystem": "simple",
    "build-commands": [
     "python3 setup.py install --prefix=${FLATPAK_DEST} --skip-install-desktop-file --skip-install-mime"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/sugarlabs/math-hurdler.git",
      "commit": "6762e69146e756b78839fec4ab25666a07a9690b",
      "x-checker-data": {
       "type": "git"
      }
     },
     {
      "type": "patch",
      "path": "mathhurdler-port.patch"
     },
     {
      "type": "patch",
      "path": "mathhurdler-info.patch"
     },
     {
      "type": "patch",
      "path": "mathhurdler-monitors.patch"
     }
    ],
    "post-install": [
     "sugarapp-gen-mimetypes activity/activity.info mimetypes",
     "sugarapp-gen-appdata activity/activity.info appdata",
     "sugarapp-gen-desktop activity/activity.info desktop --mimetypes mimetypes",
     "install -D mimetypes /app/share/mime/packages/org.sugarlabs.MathHurdler.xml",
     "install -D mimetypes /app/share/sugar/activities/MathHurdler.activity/activity/mimetypes.xml",
     "install -D appdata /app/share/metainfo/org.sugarlabs.MathHurdler.metainfo.xml",
     "install -D desktop /app/share/applications/org.sugarlabs.MathHurdler.desktop",
     "install -D activity/activity-math-hurdler.svg /app/share/icons/hicolor/scalable/apps/org.sugarlabs.MathHurdler.svg"
    ]
   }
  ]
 }
}