{
 "app_id": "org.guitarix.Guitarix",
 "source_url": "https://raw.githubusercontent.com/flathub/org.guitarix.Guitarix/master/org.guitarix.Guitarix.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=home"
 ],
 "module_count": 11,
 "fetched_at": "2026-09-17T16:15:16.413184+00:00",
 "manifest": {
  "app-id": "org.guitarix.Guitarix",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "guitarix",
  "rename-appdata-file": "org.guitarix.guitarix.metainfo.xml",
  "rename-desktop-file": "guitarix.desktop",
  "rename-icon": "gx_head",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/pipewire-0",
   "--filesystem=home",
   "--share=network",
   "--env=TMPDIR=/var/tmp",
   "--env=LADSPA_PATH=/app/extensions/Plugins/ladspa:/app/lib/ladspa"
  ],
  "build-options": {
   "env": {
    "PLUGINS_DIR": "/app/extensions/Plugins/Guitarix"
   }
  },
  "cleanup": [
   "/bin/jack*",
   "/lib/cmake",
   "/lib/lv2",
   "/lib/pkgconfig",
   "/lib/python-3.*",
   "/share/man",
   "/share/doc",
   "/share/info",
   "/share/gtk-doc",
   "/include",
   "*.la",
   "*.a"
  ],
  "add-extensions": {
   "org.freedesktop.LinuxAudio.Plugins": {
    "directory": "extensions/Plugins",
    "version": "25.08",
    "add-ld-path": "lib",
    "merge-dirs": "ladspa;lv2",
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": false
   },
   "org.freedesktop.LinuxAudio.Plugins.Guitarix": {
    "directory": "extensions/Plugins/Guitarix",
    "version": "25.08",
    "add-ld-path": "lib",
    "bundle": true,
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": false
   }
  },
  "modules": [
   "gtkmm.json",
   "shared-modules/intltool/intltool-0.51.json",
   {
    "name": "boost",
    "buildsystem": "simple",
    "cleanup": [
     "/include",
     "/lib/cmake",
     "*.a",
     "*.so"
    ],
    "build-commands": [
     "./bootstrap.sh --with-libraries=system,iostreams",
     "./b2 install variant=release link=shared runtime-link=shared --prefix=/app -j $FLATPAK_BUILDER_N_JOBS"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archives.boost.io/release/1.77.0/source/boost_1_77_0.tar.bz2",
      "sha256": "fc9f85fc030e233142908241af7a846e60630aa7388de9a5fafb1f3a26840854"
     }
    ]
   },
   "shared-modules/linux-audio/fftw3f-static.json",
   "shared-modules/linux-audio/lrdf.json",
   "shared-modules/linux-audio/lv2.json",
   "shared-modules/linux-audio/lilv.json",
   "shared-modules/linux-audio/liblo.json",
   {
    "name": "eigen",
    "builddir": true,
    "buildsystem": "cmake-ninja",
    "cleanup": [
     "/share"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2",
      "sha256": "b4c198460eba6f28d34894e3a5710998818515104d6e74e5cc331ce31e46e626"
     }
    ]
   },
   "sassc.json",
   {
    "name": "guitarix",
    "buildsystem": "simple",
    "build-options": {
     "arch": {
      "x86_64": {
       "env": {
        "OPTIMIZATION": "-mfpmath=sse -msse3 -march=core2"
       }
      },
      "aarch64": {
       "env": {
        "OPTIMIZATION": "-march=armv8-a"
       }
      }
     }
    },
    "build-commands": [
     "python3 ./waf configure --prefix=$FLATPAK_DEST --lv2dir=${PLUGINS_DIR}/lv2 --ldflags=-L$FLATPAK_DEST/lib --no-avahi --no-bluez --install-roboto-font --no-faust --cxxflags=\"$OPTIMIZATION -ftree-loop-linear -fno-math-errno -fno-signed-zeros -fstrength-reduce -pipe\" --includeconvolver --includeresampler",
     "python3 ./waf build -j $FLATPAK_BUILDER_N_JOBS",
     "python3 ./waf install"
    ],
    "post-install": [
     "install -Dm644 org.guitarix.Guitarix.png $FLATPAK_DEST/share/icons/hicolor/128x128/apps/gx_head.png",
     "mv /app/bin/guitarix /app/bin/guitarix.bin",
     "install -Dm755 guitarix-wrap.sh /app/bin/guitarix",
     "install -Dm644 -t ${PLUGINS_DIR}/share/metainfo org.freedesktop.LinuxAudio.Plugins.Guitarix.metainfo.xml",
     "appstreamcli compose --components=org.freedesktop.LinuxAudio.Plugins.Guitarix --prefix=/ --origin=org.freedesktop.LinuxAudio.Plugins.Guitarix --result-root=${PLUGINS_DIR} --data-dir=${PLUGINS_DIR}/share/app-info/xmls ${PLUGINS_DIR}"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/brummer10/guitarix/releases/download/V0.47.0/guitarix2-0.47.0.tar.xz",
      "sha256": "f18abd3bd2cb05960d00f15f36c63f97eb1759f9571977e3e42191ff16b9b467"
     },
     {
      "type": "patch",
      "paths": [
       "patches/guitarix-metainfo.patch",
       "patches/gx_no_glibmm.patch"
      ]
     },
     {
      "type": "file",
      "path": "guitarix-wrap.sh"
     },
     {
      "type": "file",
      "path": "org.guitarix.Guitarix.png"
     },
     {
      "type": "file",
      "path": "org.freedesktop.LinuxAudio.Plugins.Guitarix.metainfo.xml"
     }
    ]
   }
  ]
 }
}