{
 "app_id": "org.musescore.MuseScore",
 "source_url": "https://raw.githubusercontent.com/flathub/org.musescore.MuseScore/master/org.musescore.MuseScore.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.9",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=cups",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri",
  "--filesystem=home",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.kde.kdeconnect",
  "--system-talk-name=org.freedesktop.UPower"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-20T15:34:59.064621+00:00",
 "manifest": {
  "id": "org.musescore.MuseScore",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.9",
  "sdk": "org.kde.Sdk",
  "command": "mscore",
  "rename-icon": "mscore",
  "copy-icon": true,
  "rename-mime-file": "musescore.xml",
  "rename-mime-icons": [
   "application-x-musescore",
   "application-x-musescore+xml"
  ],
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--share=network",
   "--socket=pulseaudio",
   "--socket=cups",
   "--device=dri",
   "--filesystem=home",
   "--env=TMPDIR=/var/tmp",
   "--filesystem=xdg-run/pipewire-0",
   "--system-talk-name=org.freedesktop.UPower"
  ],
  "add-extensions": {
   "org.freedesktop.LinuxAudio.Plugins": {
    "directory": "extensions/Plugins",
    "version": "24.08",
    "add-ld-path": "lib",
    "merge-dirs": "vst3",
    "subdirectories": true,
    "no-autodownload": true
   }
  },
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/man",
   "/share/pkgconfig",
   "*.a"
  ],
  "modules": [
   {
    "name": "mnxdom",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DMNX_W3C_SOURCE=mnx_w3c",
     "-DBUILD_SHARED_LIBS=ON",
     "-DUSE_SYSTEM_NLOHMANN_JSON=ON",
     "-DUSE_SYSTEM_JSON_SCHEMA_VALIDATOR=ON",
     "-Dmnxdom_BUILD_TESTING=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/rpatters1/mnxdom.git",
      "commit": "e7c947bf768caccf315426dcae0dfac02caf738b"
     },
     {
      "type": "git",
      "url": "https://github.com/w3c/mnx.git",
      "commit": "aedba3a3740ffbb6ae9befa2ef0bb3e0226e5f7c",
      "dest": "mnx_w3c"
     }
    ],
    "modules": [
     {
      "name": "xxd",
      "buildsystem": "simple",
      "build-commands": [
       "make",
       "install -Dm755 tinyxxd \"${FLATPAK_DEST}/bin/xxd\""
      ],
      "cleanup": [
       "*"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/xyproto/tinyxxd/",
        "tag": "v1.3.16",
        "commit": "2d693356bc7a9c655abb6c1dd1f1ace40ebb918d"
       }
      ]
     },
     {
      "name": "nlohmann-json",
      "buildsystem": "cmake-ninja",
      "config-opts": [
       "-DCMAKE_BUILD_TYPE=Release",
       "-DJSON_BuildTests=OFF",
       "-DJSON_MultipleHeaders=ON",
       "-DJSON_SystemInclude=ON"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/nlohmann/json/archive/v3.12.0.tar.gz",
        "sha256": "4b92eb0c06d10683f7447ce9406cb97cd4b453be18d7279320f7b2f025c10187"
       }
      ]
     },
     {
      "name": "json-validator",
      "buildsystem": "cmake-ninja",
      "build-options": {
       "cflags": "-fPIC -fpic",
       "cxxflags": "-fPIC -fpic"
      },
      "config-opts": [
       "-DJSON_VALIDATOR_BUILD_TESTS=OFF",
       "-DJSON_VALIDATOR_SHARED_LIBS=ON"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/pboettch/json-schema-validator/",
        "commit": "c780404a84dd9ba978ba26bc58d17cb43fa7bc80",
        "tag": "2.4.0"
       }
      ]
     }
    ]
   },
   {
    "name": "musescore",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DMUSE_APP_BUILD_MODE=release",
     "-DMUSE_ENABLE_UNIT_TESTS=OFF",
     "-DMUSE_MODULE_VST=ON",
     "-DMUSE_MODULE_VST_VST3_SDK_PATH=../vst3sdk",
     "-DMUSE_MODULE_NETWORK_WEBSOCKET=ON",
     "-DMUE_COMPILE_USE_SYSTEM_MNXDOM=ON",
     "-DMUE_COMPILE_USE_SYSTEM_HARFBUZZ=ON"
    ],
    "cleanup": [
     "/include",
     "/lib/cmake",
     "/lib/pkgconfig",
     "*.a"
    ],
    "post-install": [
     "install -d /app/extensions/Plugins",
     "install -d /app/share/mscore",
     "ln -s /app/share/mscore-4.7/locale /app/share/mscore/translations"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/steinbergmedia/vst3sdk.git",
      "tag": "v3.7.12_build_20",
      "commit": "cc2adc90382dded9e347caf74e4532f1458715db",
      "dest": "vst3sdk"
     },
     {
      "type": "patch",
      "path": "patches/vst3sdk_paths.patch",
      "options": [
       "--directory=vst3sdk"
      ]
     },
     {
      "type": "archive",
      "url": "https://github.com/musescore/MuseScore/archive/refs/tags/v4.7.5.tar.gz",
      "sha256": "b9db52e139e925adfc56e3ab59244f44da4db7e5e133d5084c5da5dfc3dfb9d1"
     },
     {
      "type": "patch",
      "path": "patches/musescore-appdata.patch"
     }
    ]
   }
  ]
 }
}