{
 "app_id": "info.puredata.Pd-extended",
 "source_url": "https://raw.githubusercontent.com/flathub/info.puredata.Pd-extended/master/info.puredata.Pd-extended.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=all",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=host",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.freedesktop.ScreenSaver"
 ],
 "module_count": 11,
 "fetched_at": "2026-09-17T16:10:10.092451+00:00",
 "manifest": {
  "app-id": "info.puredata.Pd-extended",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "pd-extended",
  "rename-desktop-file": "pd-extended.desktop",
  "rename-icon": "pd-extended",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--share=network",
   "--filesystem=xdg-run/pipewire-0",
   "--filesystem=host",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.freedesktop.ScreenSaver",
   "--device=all",
   "--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
   }
  },
  "modules": [
   "shared-modules/lua5.1/lua-5.1.5.json",
   "shared-modules/lame/lame-3.99.5.json",
   "shared-modules/linux-audio/dssi.json",
   "shared-modules/linux-audio/fftw3f.json",
   "shared-modules/linux-audio/fluidsynth2.json",
   "shared-modules/linux-audio/ladspa.json",
   "swig.json",
   {
    "name": "tcl",
    "buildsystem": "autotools",
    "subdir": "unix",
    "build-options": {
     "no-debuginfo": true
    },
    "post-install": [
     "chmod 755 /app/lib/libtcl*.so"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://prdownloads.sourceforge.net/tcl/tcl8.6.17-src.tar.gz",
      "sha256": "a3903371efcce8a405c5c245d029e9f6850258a60fa3761c4d58995610949b31",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 4941,
       "stable-only": true,
       "versions": {
        "<": "9"
       },
       "url-template": "https://prdownloads.sourceforge.net/tcl/tcl$version-src.tar.gz"
      }
     }
    ]
   },
   {
    "name": "tk",
    "buildsystem": "autotools",
    "subdir": "unix",
    "post-install": [
     "chmod 755 /app/lib/libtk*.so"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://prdownloads.sourceforge.net/tcl/tk8.6.17-src.tar.gz",
      "sha256": "e4982df6f969c08bf9dd858a6891059b4a3f50dc6c87c10abadbbe2fc4838946",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 11426,
       "stable-only": true,
       "versions": {
        "<": "9"
       },
       "url-template": "https://prdownloads.sourceforge.net/tcl/tk$version-src.tar.gz"
      }
     }
    ]
   },
   {
    "name": "libtirpc",
    "build-options": {
     "cflags": "-std=gnu17"
    },
    "config-opts": [
     "--disable-gssapi"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/sourceforge/libtirpc/libtirpc-1.3.1.tar.bz2",
      "sha256": "245895caf066bec5e3d4375942c8cb4366adad184c29c618d97f724ea309ee17"
     }
    ]
   },
   {
    "name": "pd-extended",
    "rm-configure": true,
    "build-options": {
     "cflags": "-fpermissive -std=gnu17"
    },
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.com/pd-extended/pd-extended.git",
      "commit": "1552fe44b8d8ee9455d1a4ff81b049a25c0f1b7b"
     },
     {
      "type": "patch",
      "paths": [
       "prefix.patch",
       "disable-failing-externals.patch",
       "oscx-rpc.patch",
       "flatpak-package.patch",
       "build-fixes.patch",
       "portmidi-build-fix.patch",
       "pd-external-mrpeach-buildfix.patch"
      ]
     },
     {
      "type": "file",
      "path": "info.puredata.Pd-extended.metainfo.xml"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "./scripts/auto-build/pd-extended-release-auto-builder.sh",
     "mv ${FLATPAK_DEST}/share/mime/packages/{pd-extended,$FLATPAK_ID}.xml",
     "mv ${FLATPAK_DEST}/share/icons/hicolor/128x128/mimetypes/{,$FLATPAK_ID.}text-x-puredata.png",
     "mv ${FLATPAK_DEST}/share/icons/hicolor/48x48/mimetypes/{,$FLATPAK_ID.}text-x-puredata.png",
     "desktop-file-edit --set-key=Exec --set-value=\"pd-extended %F\" ${FLATPAK_DEST}/share/applications/pd-extended.desktop",
     "install -Dm644 -t  /app/share/metainfo info.puredata.Pd-extended.metainfo.xml",
     "install -d /app/extensions/Plugins"
    ],
    "cleanup": [
     "/lib/pkgconfig",
     "/man"
    ]
   }
  ]
 }
}