{
 "app_id": "io.lmms.LMMS",
 "source_url": "https://raw.githubusercontent.com/flathub/io.lmms.LMMS/master/io.lmms.LMMS.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",
  "--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": 9,
 "fetched_at": "2026-09-17T16:12:50.688028+00:00",
 "manifest": {
  "app-id": "io.lmms.LMMS",
  "base": "com.riverbankcomputing.PyQt.BaseApp",
  "base-version": "5.15-25.08",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "command": "lmms",
  "rename-desktop-file": "lmms.desktop",
  "rename-icon": "lmms",
  "rename-mime-file": "lmms.xml",
  "rename-mime-icons": [
   "application-x-lmms-project"
  ],
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--device=dri",
   "--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
   }
  },
  "build-options": {
   "env": {
    "BASEAPP_REMOVE_WEBENGINE": "1"
   }
  },
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/man",
   "/share/man",
   "/share/info",
   "/share/sip",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/SDL/SDL-1.2.15.json",
   "shared-modules/linux-audio/fftw3f.json",
   {
    "name": "portaudio",
    "config-opts": [
     "--disable-static",
     "--without-oss"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/PortAudio/portaudio/archive/refs/tags/v19.7.0.tar.gz",
      "sha256": "5af29ba58bbdbb7bbcefaaecc77ec8fc413f0db6f4c4e286c40c3e1b83174fa0"
     }
    ]
   },
   "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"
    ],
    "cleanup": [
     "/lib/lv2",
     "/lib/vst"
    ],
    "build-options": {
     "arch": {
      "aarch64": {
       "env": {
        "NOOPT": "true"
       }
      }
     }
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/falkTX/Carla/archive/v2.4.2.tar.gz",
      "sha256": "376884965e685242953cab757818dde262209c651bd563a04eade0678c6b9f39"
     },
     {
      "type": "patch",
      "path": "patches/carla-juce.patch"
     }
    ]
   },
   "shared-modules/linux-audio/stk.json",
   {
    "name": "gig",
    "sources": [
     {
      "type": "archive",
      "url": "http://download.linuxsampler.org/packages/libgig-4.1.0.tar.bz2",
      "sha256": "06a280278a323963042acdf13b092644cceb43ef367fcbb9ca7bbedff132bd0b"
     }
    ]
   },
   {
    "name": "fltk",
    "config-opts": [
     "--enable-threads",
     "--enable-cairo",
     "--enable-shared"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/fltk/fltk/archive/release-1.3.5.tar.gz",
      "sha256": "5c534287b0e03b9520ff866704a5649268986b371bdf8f6ac003fa240e761901"
     }
    ],
    "cleanup": [
     "/share/doc"
    ]
   },
   {
    "name": "lmms",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DWANT_QT5=ON",
     "-DWANT_VST=OFF"
    ],
    "builddir": true,
    "cleanup": [
     "/share/bash-completion"
    ],
    "post-install": [
     "install -Dm644 -t /app/share/metainfo ../io.lmms.LMMS.metainfo.xml",
     "mv ${FLATPAK_DEST}/bin/lmms ${FLATPAK_DEST}/bin/lmms.bin",
     "install -Dm755 ../lmms-wrap.sh ${FLATPAK_DEST}/bin/lmms",
     "install -d /app/extensions/Plugins"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/LMMS/lmms/releases/download/v1.2.2/lmms_1.2.2.tar.xz",
      "sha256": "b185507fb64ecfd8e31145135b58ab244b637f9efc09c4176caf70aa3cbaae1e",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1832,
       "is-main-source": true,
       "url-template": "https://github.com/LMMS/lmms/releases/download/v$version/lmms_$version.tar.xz"
      }
     },
     {
      "type": "patch",
      "paths": [
       "patches/lmms-stk-path.patch",
       "patches/lmms-kwidgetsaddons.patch",
       "patches/lmms-cmake.patch"
      ]
     },
     {
      "type": "file",
      "path": "lmms-wrap.sh"
     },
     {
      "type": "file",
      "path": "io.lmms.LMMS.metainfo.xml"
     }
    ]
   }
  ]
 }
}