{
 "app_id": "org.sugarlabs.Measure",
 "source_url": "https://raw.githubusercontent.com/flathub/org.sugarlabs.Measure/master/org.sugarlabs.Measure.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:16:42.185859+00:00",
 "manifest": {
  "app-id": "org.sugarlabs.Measure",
  "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.Measure",
   "--env=SUGAR_BUNDLE_PATH=/app/share/sugar/activities/Measure.activity/"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/aclocal",
   "/share/info",
   "/share/man"
  ],
  "modules": [
   {
    "name": "meson-python",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"meson-python\" --no-build-isolation"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/28/58/66db620a8a7ccb32633de9f403fe49f1b63c68ca94e5c340ec5cceeb9821/meson_python-0.18.0-py3-none-any.whl",
      "sha256": "3b0fe051551cc238f5febb873247c0949cd60ded556efa130aa57021804868e2",
      "x-checker-data": {
       "type": "pypi",
       "name": "meson_python",
       "packagetype": "bdist_wheel"
      }
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/7e/b1/8e63033b259e0a4e40dd1ec4a9fee17718016845048b43a36ec67d62e6fe/pyproject_metadata-0.9.1-py3-none-any.whl",
      "sha256": "ee5efde548c3ed9b75a354fc319d5afd25e9585fa918a34f62f904cc731973ad",
      "x-checker-data": {
       "type": "pypi",
       "name": "pyproject_metadata",
       "packagetype": "bdist_wheel"
      }
     }
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "numpy",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"numpy==1.26.*\" --no-build-isolation"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/65/6e/09db70a523a96d25e115e71cc56a6f9031e7b8cd166c1ac8438307c14058/numpy-1.26.4.tar.gz",
      "sha256": "2a02aba9ed12e4ac4eb3ea9421c420301a0c6460d9830d74a9df87efa4912010",
      "x-checker-data": {
       "type": "pypi",
       "name": "numpy"
      }
     }
    ]
   },
   {
    "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": "alsa-utils",
    "cleanup": [
     "/null"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "./configure --prefix=/app --disable-alsaconf --with-udev-rules-dir=/app/null --with-systemdsystemunitdir=/app/null",
     "make install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.alsa-project.org/files/pub/utils/alsa-utils-1.2.12.tar.bz2",
      "sha256": "98bc6677d0c0074006679051822324a0ab0879aea558a8f68b511780d30cd924",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.alsa-project.org/files/pub/utils/",
       "pattern": "<a href=\"(alsa-utils-([\\d\\.]+\\d).tar.bz2)\">"
      }
     }
    ]
   },
   {
    "name": "measure",
    "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/Measure.git",
      "tag": "v103",
      "commit": "278813082b07a5d79119800aedc940dd4e0ac819",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "patch",
      "path": "measure-port.patch"
     },
     {
      "type": "patch",
      "path": "measure-monitors.patch"
     },
     {
      "type": "patch",
      "path": "measure-info.patch"
     },
     {
      "type": "patch",
      "path": "measure-fix-close.patch"
     },
     {
      "type": "patch",
      "path": "measure-fix-hw-detection.patch"
     },
     {
      "type": "patch",
      "path": "measure-fix-overflow.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/sugar/activities/Measure.activity/activity/mimetypes.xml",
     "install -D mimetypes /app/share/mime/packages/org.sugarlabs.Measure.xml",
     "install -D appdata /app/share/metainfo/org.sugarlabs.Measure.appdata.xml",
     "install -D desktop /app/share/applications/org.sugarlabs.Measure.desktop",
     "install -D activity/activity-measure.svg /app/share/icons/hicolor/scalable/apps/org.sugarlabs.Measure.svg"
    ]
   }
  ]
 }
}