{
 "app_id": "org.nongnu.gsequencer.gsequencer",
 "source_url": "https://raw.githubusercontent.com/flathub/org.nongnu.gsequencer.gsequencer/master/org.nongnu.gsequencer.gsequencer.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri",
  "--filesystem=xdg-run/pipewire-0:ro",
  "--filesystem=host"
 ],
 "module_count": 18,
 "fetched_at": "2026-09-17T16:16:10.199458+00:00",
 "manifest": {
  "app-id": "org.nongnu.gsequencer.gsequencer",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "gsequencer",
  "rename-desktop-file": "gsequencer.desktop",
  "copy-icon": true,
  "rename-appdata-file": "org.nongnu.gsequencer.gsequencer.appdata.xml",
  "rename-icon": "gsequencer",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--device=dri",
   "--filesystem=xdg-run/pipewire-0:ro",
   "--filesystem=host",
   "--env=AGS_LICENSE_FILENAME=/app/share/gsequencer/GPL-3",
   "--env=LADSPA_PATH=/app/extensions/Plugins/ladspa:/app/lib/ladspa",
   "--env=DSSI_PATH=/app/extensions/Plugins/dssi:/app/lib/dssi",
   "--env=VST3_PATH=/app/extensions/Plugins/vst3",
   "--env=LV2_PATH=/app/extensions/Plugins/lv2:/app/lib/lv2"
  ],
  "add-extensions": {
   "org.freedesktop.LinuxAudio.Plugins": {
    "directory": "extensions/Plugins",
    "version": "25.08",
    "add-ld-path": "lib",
    "merge-dirs": "ladspa;dssi;lv2;vst3",
    "subdirectories": true,
    "no-autodownload": true
   },
   "org.freedesktop.LinuxAudio.Plugins.CMT": {
    "directory": "extensions/Plugins/CMT",
    "version": "25.08",
    "add-ld-path": "lib",
    "merge-dirs": "ladspa",
    "autodelete": false,
    "subdirectories": true
   }
  },
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/man",
   "/share/gtk-doc",
   "/include/vst3",
   "/lib/vst3",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/gtk2/gtk2.json",
   "shared-modules/linux-audio/ladspa.json",
   "shared-modules/linux-audio/fftw3f.json",
   "shared-modules/linux-audio/liblo.json",
   "shared-modules/linux-audio/dssi.json",
   "gtkmm.yaml",
   {
    "name": "audiofile",
    "cleanup": [
     "/share/doc"
    ],
    "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/lv2.json",
   {
    "name": "libglade",
    "rm-configure": true,
    "cleanup": [
     "/bin",
     "/share/doc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnome.org/pub/GNOME/sources/libglade/2.6/libglade-2.6.4.tar.gz",
      "sha256": "c41d189b68457976069073e48d6c14c183075d8b1d8077cb6dfb8b7c5097add3"
     },
     {
      "type": "shell",
      "commands": [
       "rm -f config.guess"
      ]
     },
     {
      "type": "script",
      "commands": [
       "autoreconf -fiv"
      ],
      "dest-filename": "autogen.sh"
     }
    ]
   },
   "shared-modules/linux-audio/fluidsynth2.json",
   {
    "name": "invada-studio-plugins-lv2",
    "buildsystem": "simple",
    "build-commands": [
     "sed -i -e 's~/usr/local/lib/lv2~/app/lib/lv2~g' Makefile",
     "make",
     "make install-sys"
    ],
    "cleanup": [
     "/share/doc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://launchpad.net/invada-studio/lv2/1.2/+download/invada-studio-plugins-lv2_1.2.0-0.tar.gz",
      "sha256": "9e67af0ebc8a6394b50785034b368573c8a9241dd2500bdc91905977b94f8209"
     }
    ]
   },
   {
    "name": "calf-lv2",
    "config-opts": [
     "--with-bash-completion-dir=no"
    ],
    "cleanup": [
     "/share/doc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://calf-studio-gear.org/files/calf-0.90.2.tar.gz",
      "sha256": "f0e9d36990ece7ae6334166ced5a2e02bbd8bcd2aa2ecad0efce0b4e6790c42e"
     }
    ]
   },
   {
    "name": "chrpath",
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://src.fedoraproject.org/lookaside/extras/chrpath/chrpath-0.16.tar.gz/2bf8d1d1ee345fc8a7915576f5649982/chrpath-0.16.tar.gz",
      "sha256": "bb0d4c54bac2990e1bdf8132f2c9477ae752859d523e141e72b3b11a12c26e7b"
     }
    ]
   },
   {
    "name": "vst3sdk",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "build-options": {
     "cxxflags": "-include cstdio -include limits -std=c++2a"
    },
    "no-make-install": true,
    "cleanup": [
     "*"
    ],
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DSMTG_ADD_VST3_PLUGINS_SAMPLES=OFF",
     "-DSMTG_ADD_VST3_HOSTING_SAMPLES=OFF"
    ],
    "post-install": [
     "install -d ${FLATPAK_DEST}/include/vst3",
     "cp -rv ../{base,pluginterfaces,public.sdk,vstgui4} ${FLATPAK_DEST}/include/vst3",
     "install -d ${FLATPAK_DEST}/lib/vst3",
     "cp -v lib/RelWithDebInfo/*.a ${FLATPAK_DEST}/lib/vst3"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/steinbergmedia/vst3sdk.git",
      "tag": "v3.7.7_build_19",
      "commit": "358b72ee61bc67fb4592b0d492e0c6a1211ebf11"
     },
     {
      "type": "patch",
      "paths": [
       "patches/vst3sdk.patch",
       "patches/vst3sdk-buildfix.patch",
       "patches/vst3sdk-public.patch",
       "patches/vst3sdk-vstgui.patch"
      ]
     }
    ]
   },
   {
    "name": "poppler-data",
    "builddir": true,
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "url": "https://poppler.freedesktop.org/poppler-data-0.4.11.tar.gz",
      "sha256": "2cec05cd1bb03af98a8b06a1e22f6e6e1a65b1e2f3816cb3069bb0874825f08c"
     }
    ]
   },
   {
    "name": "poppler-glib",
    "builddir": true,
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DENABLE_ZLIB=ON",
     "-DENABLE_LIBTIFF=ON",
     "-DENABLE_LIBPNG=ON",
     "-DENABLE_GLIB=ON",
     "-DENABLE_CMS='lcms2'",
     "-DENABLE_LIBOPENJPEG='openjpeg2'",
     "-DENABLE_DCTDECODER='libjpeg'",
     "-DENABLE_SPLASH=OFF",
     "-DENABLE_BOOST=OFF",
     "-DENABLE_CPP=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://poppler.freedesktop.org/poppler-22.06.0.tar.xz",
      "sha256": "a0f9aaa3918bad781039fc307a635652a14d1b391cd559b66edec4bedba3c5d7"
     }
    ]
   },
   {
    "name": "gsequencer",
    "config-opts": [
     "--enable-flatpak-sandbox",
     "--disable-introspection",
     "--enable-vst3",
     "--with-poppler",
     "--with-gtk-unix-print"
    ],
    "build-options": {
     "env": {
      "LIBAGS_VST3_RELEASE_TYPE": "-DRELEASE",
      "LIBAGS_VST3_CXXFLAGS": "-I/app/include/vst3 -I./ags/vst3-capi",
      "LIBAGS_VST3_LIBDIR": "-L/app/lib/vst3",
      "LIBGSEQUENCER_CPPFLAGS": "-DAGS_WINDOW_APP_ICON=\\\"/app/share/icons/hicolor/128x128/apps/org.nongnu.gsequencer.gsequencer.png\\\" -DAGS_CSS_FILENAME=\\\"/app/share/gsequencer/styles/ags.css\\\" -DAGS_ANIMATION_FILENAME=\\\"/app/share/gsequencer/images/gsequencer-800x450.png\\\" -DAGS_LOGO_FILENAME=\\\"/app/share/gsequencer/images/ags.png\\\" -DAGS_LICENSE_FILENAME=\\\"/app/share/gsequencer/GPL-3\\\" -DAGS_REDUCE_RT_EVENTS=1 -DAGS_LIBRARY_SUFFIX=\\\".so\\\" -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security"
     }
    },
    "post-install": [
     "install -D -c -p -m 644 pdf/user-manual-a4.pdf /app/share/doc/gsequencer/pdf/user-manual-a4.pdf",
     "install -D -c -p -m 644 pdf/user-manual-letter.pdf /app/share/doc/gsequencer/pdf/user-manual-letter.pdf",
     "install -D -c -p -m 644 COPYING /app/share/gsequencer/GPL-3",
     "install -D -d /app/extensions/Plugins"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download-mirror.savannah.gnu.org/releases/gsequencer/9.3.x/gsequencer-9.3.2.tar.gz",
      "sha256": "eff16640099882257ee50260be307558bad361fb20bc0336255eb72ce0596ff7"
     },
     {
      "type": "file",
      "url": "https://gsequencer.org/download/pdf/ags-user-manual-a4-8.3.2.pdf",
      "sha256": "8c0a54d6af0e2a8aac0b7e68b38a73c136ec55349de8058f23fc35e6a17721b8",
      "dest": "pdf/",
      "dest-filename": "user-manual-a4.pdf"
     },
     {
      "type": "file",
      "url": "https://gsequencer.org/download/pdf/ags-user-manual-letter-8.3.2.pdf",
      "sha256": "54bc5e20f4d1927acca1c4570df8821076d2f74c5ba9b08724dbdf408d72d96a",
      "dest": "pdf/",
      "dest-filename": "user-manual-letter.pdf"
     },
     {
      "type": "shell",
      "commands": [
       "autoreconf -vfi"
      ]
     }
    ],
    "cleanup": [
     "/share/doc/libags-doc",
     "/share/doc/libags-audio-doc",
     "/share/doc/libags-gui-doc",
     "/share/doc/libgsequencer-doc"
    ]
   }
  ]
 }
}