{
 "app_id": "studio.kx.carla",
 "source_url": "https://raw.githubusercontent.com/flathub/studio.kx.carla/master/studio.kx.carla.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=x11",
  "--device=all",
  "--filesystem=xdg-run/pipewire-0",
  "--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": 2,
 "fetched_at": "2026-09-17T16:17:30.574918+00:00",
 "manifest": {
  "app-id": "studio.kx.carla",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "base": "com.riverbankcomputing.PyQt.BaseApp",
  "base-version": "5.15-25.08",
  "command": "carla",
  "rename-desktop-file": "carla.desktop",
  "rename-icon": "carla",
  "rename-mime-file": "carla.xml",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--device=all",
   "--filesystem=xdg-run/pipewire-0",
   "--filesystem=home",
   "--env=TMPDIR=/var/tmp",
   "--env=ALSA_CONFIG_PATH="
  ],
  "add-extensions": {
   "org.freedesktop.LinuxAudio.Plugins": {
    "directory": "extensions/Plugins",
    "version": "25.08",
    "add-ld-path": "lib",
    "merge-dirs": "ladspa;dssi;lv2;vst;vst3",
    "subdirectories": true,
    "no-autodownload": true
   }
  },
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh",
   "rm -fr /app/lib/plugins/PyQt5/libpyqt5qmlplugin.so",
   "rm -fr /app/lib/python/site-packages/PyQt5/__pycache__",
   "rm -fr /app/lib/python/site-packages/PyQt5/QtDBus.*",
   "rm -fr /app/lib/python/site-packages/PyQt5/QtDesigner.*",
   "rm -fr /app/lib/python/site-packages/PyQt5/QtMultimedia*",
   "rm -fr /app/lib/python/site-packages/PyQt5/QtNetwork*",
   "rm -fr /app/lib/python/site-packages/PyQt5/QtQml.*",
   "rm -fr /app/lib/python/site-packages/PyQt5/QtQuick*",
   "rm -fr /app/lib/python/site-packages/PyQt5/QtTest*",
   "rm -fr /app/lib/python/site-packages/PyQt5/QtTextToSpeech*",
   "rm -fr /app/lib/python/site-packages/PyQt5/QtWeb*",
   "rm -fr /app/lib/python/site-packages/PyQt5/QtXml*",
   "rm -fr /app/lib/python/site-packages/ply*",
   "rm -fr /app/lib/python/site-packages/packaging*",
   "rm -fr /app/lib/python/site-packages/pyparsing*",
   "rm -fr /app/lib/python/site-packages/pypackaging*",
   "rm -fr /app/lib/python/site-packages/pyproject_hooks*",
   "rm -fr /app/lib/python/site-packages/toml*"
  ],
  "cleanup": [
   "/include",
   "/man",
   "/share/man",
   "/share/info",
   "/lib/pkgconfig",
   "*.la"
  ],
  "build-options": {
   "env": {
    "BASEAPP_REMOVE_WEBENGINE": "1",
    "PYTHON": "/usr/bin/python3",
    "PIP": "/usr/bin/pip3",
    "PIP_DISABLE_PIP_VERSION_CHECK": "1"
   }
  },
  "modules": [
   "shared-modules/linux-audio/fluidsynth2.json",
   {
    "name": "carla",
    "buildsystem": "simple",
    "build-commands": [
     "make features",
     "make PREFIX=/app -j $FLATPAK_BUILDER_N_JOBS",
     "make PREFIX=/app install"
    ],
    "build-options": {
     "arch": {
      "aarch64": {
       "env": {
        "NOOPT": "true"
       }
      }
     }
    },
    "license-files": [
     "doc/GPL.txt",
     "doc/LGPL.txt"
    ],
    "post-install": [
     "mv ${FLATPAK_DEST}/bin/carla ${FLATPAK_DEST}/bin/carla.bin",
     "install -Dm755 carla-wrap.sh ${FLATPAK_DEST}/bin/carla",
     "install -d /app/extensions/Plugins"
    ],
    "cleanup": [
     "/lib/vst/carla.vst/",
     "/lib/lv2/carla.lv2/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/falkTX/Carla.git",
      "tag": "v2.5.10",
      "commit": "3834c7fee07b7402c24ea4344e304adb7310dbf6",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "patch",
      "path": "carla-appdata.patch"
     },
     {
      "type": "file",
      "path": "carla-wrap.sh"
     }
    ]
   }
  ]
 }
}