{
 "app_id": "xyz.splashmapper.Splash",
 "source_url": "https://raw.githubusercontent.com/flathub/xyz.splashmapper.Splash/master/xyz.splashmapper.Splash.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=host",
  "--system-talk-name=org.freedesktop.Avahi"
 ],
 "module_count": 13,
 "fetched_at": "2026-09-20T12:32:29.370836+00:00",
 "manifest": {
  "app-id": "xyz.splashmapper.Splash",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "splash.sh",
  "rename-desktop-file": "splash.desktop",
  "rename-icon": "splash",
  "finish-args": [
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--share=ipc",
   "--share=network",
   "--device=all",
   "--filesystem=host",
   "--filesystem=xdg-run/pipewire-0",
   "--system-talk-name=org.freedesktop.Avahi"
  ],
  "cleanup": [
   "/bin/gsl*",
   "/bin/opencv*",
   "/bin/sd*",
   "/include",
   "/share/OpenCV",
   "/share/info",
   "/share/man",
   "/lib/pkgconfig",
   "/lib/*.a",
   "/lib/*.la",
   "/lib/cmake"
  ],
  "modules": [
   {
    "name": "libasio",
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/asio/files/asio/1.28.2%20%28Stable%29/asio-1.28.2.tar.bz2",
      "sha256": "f1b83e0294f21c1a1972a58c2ac482be32ba5d52caebcc426f019da42ef8e990"
     }
    ]
   },
   {
    "name": "websocketpp",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/zaphoyd/websocketpp",
      "tag": "0.8.2",
      "commit": "56123c87598f8b1dd471be83ca841ceae07f95ba"
     }
    ]
   },
   {
    "name": "gphoto2",
    "config-opts": [
     "--disable-static",
     "--disable-docs",
     "--disable-internal-docs",
     "--enable-largefile",
     "--with-drivers=all"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/gphoto/libgphoto2/releases/download/v2.5.32/libgphoto2-2.5.32.tar.bz2",
      "sha256": "02b29ab0bcfceda1c7f81c75ec7cb5e64d329cf4b8fd0fcd5bc5a89ff09561bc"
     }
    ],
    "post-install": [
     "install -p -D -m 0644 'COPYING' -t '${FLATPAK_DEST}/share/licenses/gphoto2/'"
    ]
   },
   {
    "name": "opencv",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DBUILD_PERF_TEST=OFF",
     "-DBUILD_TESTS=OFF",
     "-DBUILD_EXAMPLES=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/opencv/opencv.git",
      "tag": "4.10.0",
      "commit": "71d3237a093b60a27601c20e9ee6c3e52154e8b1"
     }
    ]
   },
   {
    "name": "portaudio",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz",
      "sha256": "47efbf42c77c19a05d22e627d42873e991ec0c1357219c0d74ce6a2948cb2def"
     }
    ]
   },
   {
    "name": "gsl",
    "config-opts": [
     "--enable-shared",
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://mirror.ibcp.fr/pub/gnu/gsl/gsl-2.7.1.tar.gz",
      "sha256": "dcb0fbd43048832b757ff9942691a8dd70026d5da0ff85601e52687f6deeb34b"
     }
    ]
   },
   {
    "name": "jsoncpp",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/open-source-parsers/jsoncpp",
      "tag": "1.9.5",
      "commit": "5defb4ed1a4293b8e2bf641e16b156fb9de498cc"
     }
    ]
   },
   {
    "name": "shmdata",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DWITH_PYTHON=OFF",
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.10"
    ],
    "sources": [
     {
      "type": "git",
      "disable-submodules": true,
      "url": "https://gitlab.com/sat-mtl/tools/shmdata.git",
      "tag": "1.3.72",
      "commit": "96e044d1c6330e5fc9993cda2abc695a1dbc656e"
     }
    ]
   },
   {
    "name": "zmq",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.10",
     "-DWITH_LIBSODIUM=OFF",
     "-DENABLE_WS=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/zeromq/libzmq.git",
      "tag": "v4.3.5",
      "commit": "622fc6dde99ee172ebaa9c8628d85a7a1995a21d"
     }
    ]
   },
   {
    "name": "avahi",
    "cleanup": [
     "/bin",
     "/include",
     "/lib/avahi",
     "/lib/pkgconfig",
     "/lib/*.a",
     "/lib/*.la",
     "/share/applications/*.desktop",
     "/share/avahi",
     "/share/man"
    ],
    "config-opts": [
     "--with-distro=none",
     "--disable-introspection",
     "--disable-qt3",
     "--disable-qt4",
     "--disable-qt5",
     "--disable-gtk",
     "--disable-gtk3",
     "--disable-core-docs",
     "--disable-manpages",
     "--disable-libdaemon",
     "--disable-libevent",
     "--disable-python",
     "--disable-pygobject",
     "--disable-mono",
     "--disable-monodoc",
     "--disable-autoipd",
     "--disable-doxygen-doc",
     "--disable-doxygen-dot",
     "--disable-doxygen-xml",
     "--disable-doxygen-html",
     "--disable-manpages",
     "--disable-xmltoman"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.avahi.org/download/avahi-0.8.tar.gz",
      "sha256": "060309d7a333d38d951bc27598c677af1796934dbd98e1024e7ad8de798fedda",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 147,
       "url-template": "https://www.avahi.org/download/avahi-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "libndi",
    "buildsystem": "simple",
    "build-commands": [
     "install -D apply_extra ${FLATPAK_DEST}/bin/apply_extra"
    ],
    "sources": [
     {
      "type": "extra-data",
      "filename": "Install_NDI_SDK_v6_Linux.tar.gz",
      "url": "https://downloads.ndi.tv/SDK/NDI_SDK_Linux/Install_NDI_SDK_v6_Linux.tar.gz",
      "sha256": "f0314f245446defc488b63ceb4689acf1a965aeefdadacb70571bb216a8cc183",
      "size": 61792217,
      "installed-size": 31634769
     },
     {
      "type": "script",
      "dest-filename": "apply_extra",
      "commands": [
       "bsdtar -xf Install_NDI_SDK_v6_Linux.tar.gz",
       "_target_line=\"$(sed -n '/^__NDI_ARCHIVE_BEGIN__$/=' Install_NDI_SDK_v6_Linux.sh)\"",
       "_target_line=\"$((_target_line + 1))\"",
       "tail -n +\"$_target_line\" Install_NDI_SDK_v6_Linux.sh | tar -zxf - \"NDI SDK for Linux/lib/x86_64-linux-gnu/\" \"NDI SDK for Linux/lib/aarch64-rpi4-linux-gnueabi/\" \"NDI SDK for Linux/NDI SDK License Agreement.txt\" \"NDI SDK for Linux/licenses/libndi_licenses.txt\"",
       "install -D -m755 \"NDI SDK for Linux/lib/x86_64-linux-gnu/libndi.so.6\".*.* -t ./lib",
       "install -D -m644 \"NDI SDK for Linux/NDI SDK License Agreement.txt\" -t ./share/licenses",
       "install -D -m644 \"NDI SDK for Linux/licenses/libndi_licenses.txt\" -t ./share/licenses",
       "rm -rf \"NDI SDK for Linux\"",
       "rm -f Install_NDI_SDK_v6_Linux.*",
       "cd ./lib",
       "ln -s libndi.so.6.*.* libndi.so.6",
       "ln -s libndi.so.6.*.* libndi.so"
      ]
     }
    ]
   },
   {
    "name": "splash",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DBUILD_GENERIC_ARCH=ON",
     "-DWITH_LTO=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.com/splashmapper/splash/-/jobs/artifacts/0.12.6/raw/splash.tar.gz?job=package%3Afullsources",
      "dest-filename": "splash.tar.gz",
      "archive-type": "tar-gzip",
      "sha256": "76b50be15dd41ddc9c6327225c3f4c5f98e5ec706b5fb9ae82f8825905bea928"
     }
    ]
   },
   {
    "name": "splash-script",
    "buildsystem": "simple",
    "build-commands": [
     "install -D splash.sh ${FLATPAK_DEST}/bin/splash.sh"
    ],
    "sources": [
     {
      "type": "file",
      "path": "splash.sh"
     }
    ]
   }
  ]
 }
}