{
 "app_id": "net.purrdata.PurrData",
 "source_url": "https://raw.githubusercontent.com/flathub/net.purrdata.PurrData/master/net.purrdata.PurrData.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=host"
 ],
 "module_count": 7,
 "fetched_at": "2026-09-21T13:19:53.866735+00:00",
 "manifest": {
  "id": "net.purrdata.PurrData",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "pd-wrapper.sh",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--device=dri",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/pipewire-0",
   "--system-talk-name=org.freedesktop.UPower",
   "--filesystem=host",
   "--env=LADSPA_PATH=/app/extensions/Plugins/ladspa:/app/lib/ladspa"
  ],
  "add-extensions": {
   "org.freedesktop.LinuxAudio.Plugins": {
    "directory": "extensions/Plugins",
    "version": "25.08",
    "add-ld-path": "lib",
    "merge-dirs": "ladspa",
    "subdirectories": true,
    "no-autodownload": true
   }
  },
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/lib/pd-l2ork/Makefile.am",
   "/lib/pd-l2ork/README.txt",
   "/lib/pd-l2ork/bin/todo.txt",
   "/lib/pd-l2ork/bin/nw/credits.html"
  ],
  "modules": [
   "shared-modules/lua5.3/lua-5.3.5.json",
   "shared-modules/linux-audio/ladspa.json",
   "fluidsynth.json",
   {
    "name": "purr-data",
    "buildsystem": "autotools",
    "subdir": "pd/src",
    "config-opts": [
     "--disable-portaudio",
     "--enable-alsa",
     "--disable-oss",
     "--enable-jack"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/agraef/purr-data/",
      "tag": "2.20.1",
      "commit": "fb224e0396cfa448c038038f25b19e19839ff069",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/agraef/purr-data/releases/latest",
       "tag-query": ".tag_name",
       "version-query": "$tag",
       "is-main-source": true
      }
     },
     {
      "type": "patch",
      "paths": [
       "patch/gnu-make-parallel.patch",
       "patch/no-rsync-during-install.patch"
      ]
     }
    ]
   },
   {
    "name": "pd-externals",
    "buildsystem": "simple",
    "subdir": "externals",
    "build-commands": [
     "make -j ${FLATPAK_BUILDER_N_JOBS} LUA_LIBS=\"-L/app/lib -llua\" prefix=/app \\\n     adaptive arraysize autotune bassemu boids comport creb cxc cyclone earplug ekext ext13 fftease \\\n     flatgui freeverb ggee hcs iem_ambi iem_bin_ambi iemlib iemguts iem_adaptfilt iemmatrix \\\n     iemxmlrpc iem_delay iem_roomsim iem_spec2 iem_tab jasch_lib loaders-libdir lyonpotpourri mapping \\\n     markex maxlib mjlib moonlib motex mrpeach pan pdcontainer pddp pdlua pdogg plugin pmpd \\\n     rjlib sigpack smlib tof unauthorized vbap windowing\n",
     "make -j ${FLATPAK_BUILDER_N_JOBS} \"CFLAGS_ADD=-Wno-error=incompatible-pointer-types -Wno-error=implicit-function-declaration\" LDFLAGS=-L/app/lib prefix=/app fluid",
     "make -j ${FLATPAK_BUILDER_N_JOBS} DESTDIR=/ LUA_LIBS=\"-L/app/lib -llua\" prefix=/app \\\n     adaptive_install arraysize_install autotune_install bassemu_install \\\n     boids_install comport_install creb_install cxc_install cyclone_install \\\n     earplug_install ekext_install ext13_install fftease_install \\\n     flatgui_install fluid_install freeverb_install ggee_install hcs_install \\\n     iem_ambi_install iem_bin_ambi_install iemlib_install \\\n     iemguts_install iem_adaptfilt_install iemmatrix_install iemxmlrpc_install \\\n     iem_delay_install iem_roomsim_install iem_spec2_install iem_tab_install \\\n     jasch_lib_install loaders-libdir_install lyonpotpourri_install \\\n     mapping_install markex_install maxlib_install mjlib_install \\\n     moonlib_install motex_install mrpeach_install \\\n     pan_install pdcontainer_install pddp_install pdlua_install pdogg_install \\\n     plugin_install pmpd_install rjlib_install sigpack_install smlib_install \\\n     tof_install unauthorized_install vbap_install windowing_install\n"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/agraef/purr-data/",
      "tag": "2.20.1",
      "commit": "fb224e0396cfa448c038038f25b19e19839ff069",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/agraef/purr-data/releases/latest",
       "tag-query": ".tag_name",
       "version-query": "$tag"
      }
     },
     {
      "type": "patch",
      "paths": [
       "patch/pd-external-mrpeach-buildfix.patch"
      ]
     }
    ]
   },
   {
    "name": "pd-abstractions",
    "buildsystem": "simple",
    "subdir": "abstractions",
    "build-commands": [
     "make -j ${FLATPAK_BUILDER_N_JOBS} DESTDIR=/ prefix=/app install"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/agraef/purr-data/",
      "tag": "2.20.1",
      "commit": "fb224e0396cfa448c038038f25b19e19839ff069",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/agraef/purr-data/releases/latest",
       "tag-query": ".tag_name",
       "version-query": "$tag"
      }
     }
    ]
   },
   {
    "name": "purr-data-integration",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/lib/pd-l2ork/bin/nw",
     "tar -x -f nwjs.tar.gz -C /app/lib/pd-l2ork/bin/nw --strip-components=1",
     "install -m 755 packages/linux_flatpak/pd-wrapper.sh /app/bin",
     "install -d /app/share/applications/",
     "install -m 644 packages/linux_flatpak/net.purrdata.PurrData.desktop /app/share/applications/",
     "install -d /app/share/metainfo/",
     "install -m 644 net.purrdata.PurrData.metainfo.xml /app/share/metainfo",
     "install -d /app/share/icons/hicolor/scalable/apps",
     "install -m 644 packages/linux_flatpak/net.purrdata.PurrData.svg /app/share/icons/hicolor/scalable/apps/",
     "install -Dm644 packages/linux_make/purr-data.xml ${FLATPAK_DEST}/share/mime/packages/${FLATPAK_ID}.xml",
     "install -m 644 default.settings /app/lib/pd-l2ork",
     "install -d /app/extensions/Plugins"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/agraef/purr-data/",
      "tag": "2.20.1",
      "commit": "fb224e0396cfa448c038038f25b19e19839ff069",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/agraef/purr-data/releases/latest",
       "tag-query": ".tag_name",
       "version-query": "$tag"
      }
     },
     {
      "type": "file",
      "url": "https://dl.nwjs.io/v0.42.3/nwjs-v0.42.3-linux-x64.tar.gz",
      "sha256": "4802a3a32767ff8908aef8e91e11d81e7b515b32a09c9ab82c09edf91e49d99e",
      "dest-filename": "nwjs.tar.gz"
     },
     {
      "type": "file",
      "path": "net.purrdata.PurrData.metainfo.xml"
     },
     {
      "type": "file",
      "path": "default.settings"
     },
     {
      "type": "patch",
      "path": "patch/flatpak-alsa-pulse.patch"
     }
    ]
   }
  ]
 }
}