{
 "app_id": "org.sugarlabs.Pippy",
 "source_url": "https://raw.githubusercontent.com/flathub/org.sugarlabs.Pippy/master/org.sugarlabs.Pippy.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=all"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-17T16:16:42.185862+00:00",
 "manifest": {
  "app-id": "org.sugarlabs.Pippy",
  "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=all",
   "--env=SUGAR_BUNDLE_ID=org.sugarlabs.Pippy",
   "--env=SUGAR_BUNDLE_PATH=/app/share/sugar/activities/Pippy.activity"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/lib/python3.**/Box2D/tests",
   "/lib/python3.**/pygame/docs",
   "/lib/python3.*/*/pygame/tests",
   "/share/aclocal",
   "/share/glade",
   "/share/gtk-doc",
   "/share/info",
   "/share/man",
   "/share/vala",
   "/share/xdg-terminals"
  ],
  "cleanup-commands": [
   "rm -rf /app/share/gir-1.0"
  ],
  "modules": [
   {
    "name": "pygame2",
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/49/cc/08bba60f00541f62aaa252ce0cfbd60aebd04616c0b9574f755b583e45ae/pygame-2.6.1.tar.gz",
      "sha256": "56fb02ead529cee00d415c3e007f75e0780c655909aaa8e8bf616ee09c9feb1f",
      "x-checker-data": {
       "type": "pypi",
       "name": "pygame"
      }
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --ignore-installed --no-deps --prefix=/app --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"
       }
      }
     }
    }
   },
   {
    "name": "swig",
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/swig/swig.git",
      "tag": "v4.4.1",
      "commit": "c7b01379fa00ff152bc22d4dd0e0d5bb862282d9",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^(?:v|rel-)([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "box2d",
    "buildsystem": "simple",
    "build-commands": [
     "python3 setup.py build_ext --inplace",
     "pip3 install --no-index --find-links \"file://${PWD}\" --prefix=${FLATPAK_DEST} . --no-build-isolation"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/pybox2d/pybox2d.git",
      "tag": "2.3.10",
      "commit": "ed9d7b04f7099a15984c727dbce46c13abd64409",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "gtksourceview",
    "config-opts": [
     "--disable-static",
     "--disable-gtk-doc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/gtksourceview/3.24/gtksourceview-3.24.11.tar.xz",
      "sha256": "691b074a37b2a307f7f48edc5b8c7afa7301709be56378ccf9cc9735909077fd",
      "x-checker-data": {
       "type": "gnome",
       "name": "gtksourceview",
       "versions": {
        "<": "3.25"
       },
       "stable-only": true
      }
     },
     {
      "type": "patch",
      "path": "gtksourceview-fix-gcc-cast.patch"
     }
    ]
   },
   {
    "name": "vte",
    "buildsystem": "meson",
    "config-opts": [
     "-Ddocs=false",
     "-Dgtk3=true",
     "-Dgtk4=false",
     "-Dvapi=false",
     "-Dglade=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/vte/0.82/vte-0.82.1.tar.xz",
      "sha256": "79376d70402d271e2d38424418e1aea72357934d272e321e3906b71706a78e3a",
      "x-checker-data": {
       "type": "gnome",
       "name": "vte",
       "stable-only": true
      }
     }
    ]
   },
   {
    "name": "pippy",
    "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/Pippy.git",
      "tag": "v76",
      "commit": "d172c9126550c5c00a92ba15c7c3cd2da6dfb461",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "patch",
      "path": "pippy-port.patch"
     },
     {
      "type": "patch",
      "path": "pippy-monitors.patch"
     },
     {
      "type": "patch",
      "path": "pippy-info.patch"
     },
     {
      "type": "patch",
      "path": "pippy-fix-export.patch"
     }
    ],
    "post-install": [
     "rm -rf /app/share/sugar/activities/Pippy.activity/library/Box2D*",
     "rm -rf /app/share/sugar/activities/Pippy.activity/library/box2d*",
     "sugarapp-gen-appdata activity/activity.info appdata",
     "sugarapp-gen-desktop activity/activity.info desktop",
     "install -D appdata /app/share/metainfo/org.sugarlabs.Pippy.appdata.xml",
     "install -D desktop /app/share/applications/org.sugarlabs.Pippy.desktop",
     "install -D activity/activity-icon.svg /app/share/icons/hicolor/scalable/apps/org.sugarlabs.Pippy.svg"
    ]
   }
  ]
 }
}