{
 "app_id": "io.github.muse_sequencer.Muse",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.muse_sequencer.Muse/master/io.github.muse_sequencer.Muse.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri",
  "--filesystem=xdg-run/pipewire-0:ro",
  "--filesystem=home",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 10,
 "fetched_at": "2026-09-17T16:11:46.660377+00:00",
 "manifest": {
  "app-id": "io.github.muse_sequencer.Muse",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "command": "muse4",
  "rename-icon": "muse",
  "rename-mime-file": "muse.xml",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--device=dri",
   "--filesystem=xdg-run/pipewire-0:ro",
   "--filesystem=home",
   "--env=TMPDIR=/var/tmp",
   "--env=ALSA_CONFIG_PATH=",
   "--env=DSSI_PATH=/app/extensions/Plugins/dssi",
   "--env=LADSPA_PATH=/app/extensions/Plugins/ladspa:/app/lib/ladspa",
   "--env=LXVST_PATH=/app/extensions/Plugins/vst",
   "--env=QT_ENABLE_HIGHDPI_SCALING=1"
  ],
  "add-extensions": {
   "org.freedesktop.LinuxAudio.Plugins": {
    "directory": "extensions/Plugins",
    "version": "25.08",
    "add-ld-path": "lib",
    "merge-dirs": "ladspa;dssi;lv2;vst",
    "subdirectories": true,
    "no-autodownload": true
   }
  },
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/man",
   "/share/doc",
   "/share/gtk-doc",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/linux-audio/lrdf.json",
   {
    "name": "audiofile",
    "sources": [
     {
      "type": "archive",
      "url": "http://audiofile.68k.org/audiofile-0.3.6.tar.gz",
      "sha256": "cdc60df19ab08bfe55344395739bb08f50fc15c92da3962fac334d3bff116965"
     },
     {
      "type": "patch",
      "path": "patches/audiofile-gcc6.patch"
     }
    ]
   },
   "shared-modules/linux-audio/libinstpatch.json",
   "shared-modules/linux-audio/fluidsynth2.json",
   {
    "name": "rtaudio",
    "config-opts": [
     "--disable-static",
     "--enable-shared",
     "--with-alsa",
     "--with-pulse",
     "--with-jack=no"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://www.music.mcgill.ca/~gary/rtaudio/release/rtaudio-5.0.0.tar.gz",
      "sha256": "799deae1192da52cc2c15a078ed3b42449580be7d096fe9bc841c5bba0289c57"
     }
    ]
   },
   "shared-modules/linux-audio/liblo.json",
   "shared-modules/linux-audio/dssi.json",
   "shared-modules/linux-audio/lv2.json",
   "shared-modules/linux-audio/lilv.json",
   {
    "name": "muse4",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DLIB_INSTALL_DIR=/app/lib",
     "-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON"
    ],
    "post-install": [
     "mv ${FLATPAK_DEST}/bin/muse4{,.bin}",
     "install -Dm755 muse4.sh ${FLATPAK_DEST}/bin/muse4",
     "install -d /app/extensions/Plugins"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/muse-sequencer/muse/releases/download/4.2.1/muse-4.2.1.tar.gz",
      "sha256": "05b896a885c0fcb5e48f17475516f8f3f8346d4c6425718f011ce7e409e1c5b0"
     },
     {
      "type": "patch",
      "paths": [
       "patches/muse-appdata.patch",
       "patches/muse-ninja-build.patch"
      ]
     },
     {
      "type": "script",
      "dest-filename": "muse4.sh",
      "commands": [
       "export LV2_PATH=$HOME/.lv2:/app/extensions/Plugins/lv2:/app/lib/lv2",
       "exec muse4.bin \"$@\""
      ]
     }
    ]
   }
  ]
 }
}