{
 "app_id": "org.sugarlabs.MusicKeyboard",
 "source_url": "https://raw.githubusercontent.com/flathub/org.sugarlabs.MusicKeyboard/master/org.sugarlabs.MusicKeyboard.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:16:42.185860+00:00",
 "manifest": {
  "app-id": "org.sugarlabs.MusicKeyboard",
  "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.MusicKeyboard",
   "--env=SUGAR_BUNDLE_PATH=/app/share/sugar/activities/MusicKeyboard.activity/"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/aclocal",
   "/share/cmake",
   "/share/info",
   "/share/man"
  ],
  "cleanup-commands": [
   "rm -rf /app/share/gir-1.0"
  ],
  "modules": [
   "numpy.json",
   {
    "name": "csound",
    "buildsystem": "cmake",
    "build-options": {
     "cxxflags": "-Wno-error=template-body",
     "env": {
      "PYTHONHOME": "/app",
      "PYTHONPATH": "/usr/lib/python3.13"
     },
     "arch": {
      "arm": {
       "config-opts": [
        "-DHAVE_NEON=OFF",
        "-DCMAKE_CXX_FLAGS=-DPFFFT_SIMD_DISABLE",
        "-DCMAKE_C_FLAGS=-DPFFFT_SIMD_DISABLE"
       ]
      }
     }
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/csound/csound.git",
      "tag": "6.18.1",
      "commit": "a1580f9cdf331c35dceb486f4231871ce0b00266",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "musickeyboard",
    "buildsystem": "simple",
    "build-commands": [
     "python3 setup.py install --prefix=/app --skip-install-desktop-file --skip-install-mime"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/godiard/music-keyboard-activity.git",
      "tag": "v13",
      "commit": "f26eb80e15cbe3c29dc1342a4fec7734cb56553d",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "patch",
      "path": "musickeyboard-port.patch"
     },
     {
      "type": "patch",
      "path": "musickeyboard-monitors.patch"
     },
     {
      "type": "patch",
      "path": "musickeyboard-info.patch"
     }
    ],
    "post-install": [
     "sugarapp-gen-appdata activity/activity.info appdata",
     "sugarapp-gen-desktop activity/activity.info desktop --mimetypes activity/mimetypes.xml",
     "install -D activity/mimetypes.xml /app/share/mime/packages/org.sugarlabs.MusicKeyboard.xml",
     "install -D appdata /app/share/metainfo/org.sugarlabs.MusicKeyboard.appdata.xml",
     "install -D desktop /app/share/applications/org.sugarlabs.MusicKeyboard.desktop",
     "install -D activity/activity-simplepiano.svg /app/share/icons/hicolor/scalable/apps/org.sugarlabs.MusicKeyboard.svg"
    ]
   }
  ]
 }
}