{
 "app_id": "io.github.spacefreak18.monocoque",
 "source_url": "https://raw.githubusercontent.com/Spacefreak18/monocoque/master/flatpak/io.github.spacefreak18.monocoque.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--socket=x11",
  "--socket=wayland",
  "--share=ipc",
  "--socket=pulseaudio",
  "--device=all",
  "--share=network",
  "--filesystem=xdg-config/monocoque:create",
  "--filesystem=xdg-cache/monocoque:create",
  "--device=shm"
 ],
 "module_count": 9,
 "fetched_at": "2026-09-20T12:59:03.577725+00:00",
 "manifest": {
  "app-id": "io.github.spacefreak18.monocoque",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "gmonocoque",
  "finish-args": [
   "--socket=x11",
   "--socket=wayland",
   "--share=ipc",
   "--socket=pulseaudio",
   "--device=all",
   "--share=network",
   "--filesystem=xdg-config/monocoque:create",
   "--filesystem=xdg-cache/monocoque:create",
   "--device=shm"
  ],
  "modules": [
   {
    "name": "libconfig",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_TESTS=OFF",
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "post-install": [
     {
      "sh -c 'f=$(ls -1 COPYING COPYING.txt COPYING.LIB LICENSE LICENSE.txt LICENSE.md LICENCE licence.txt 2>/dev/null | head -1); if [ -n \"$f\" ]; then install -Dm644 \"$f\" /app/share/licenses/libconfig/$(basename \"$f\"); else echo \"WARNING": "no licence file found for libconfig\"; fi'"
     }
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/hyperrealm/libconfig/archive/refs/tags/v1.7.3.tar.gz",
      "sha256": "68757e37c567fd026330c8a8449aa5f9cac08a642f213f2687186b903bd7e94e"
     }
    ]
   },
   {
    "name": "argtable2",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DCMAKE_C_FLAGS=-Wno-error=implicit-function-declaration",
     "-DBUILD_SHARED_LIBS=ON"
    ],
    "build-commands": [
     "ninja",
     "install -Dm644 src/argtable2.h /app/include/argtable2.h",
     "for f in src/libargtable2.so* src/libargtable2.a; do\n  if [ -e \"$f\" ]; then cp -P \"$f\" /app/lib/; fi\ndone\ntrue\n"
    ],
    "post-install": [
     {
      "sh -c 'f=$(ls -1 COPYING COPYING.txt COPYING.LIB LICENSE LICENSE.txt LICENSE.md LICENCE licence.txt 2>/dev/null | head -1); if [ -n \"$f\" ]; then install -Dm644 \"$f\" /app/share/licenses/argtable2/$(basename \"$f\"); else echo \"WARNING": "no licence file found for argtable2\"; fi'"
     }
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/argtable/files/argtable/argtable-2.13/argtable2-13.tar.gz/download",
      "sha256": "8f77e8a7ced5301af6e22f47302fdbc3b1ff41f2b83c43c77ae5ca041771ddbf",
      "dest-filename": "argtable2-13.tar.gz"
     }
    ]
   },
   {
    "name": "lua5.4",
    "buildsystem": "simple",
    "build-commands": [
     "make posix MYCFLAGS=-fPIC",
     "make install INSTALL_TOP=/app"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.lua.org/ftp/lua-5.4.7.tar.gz",
      "sha256": "9fbf5e28ef86c69858f6d3d34eccc32e911c1a28b4120ff3e84aaa70cfbf1e30"
     }
    ]
   },
   {
    "name": "libserialport",
    "buildsystem": "autotools",
    "build-commands": [
     "./autogen.sh"
    ],
    "post-install": [
     {
      "sh -c 'f=$(ls -1 COPYING COPYING.txt COPYING.LIB LICENSE LICENSE.txt LICENSE.md LICENCE licence.txt 2>/dev/null | head -1); if [ -n \"$f\" ]; then install -Dm644 \"$f\" /app/share/licenses/libserialport/$(basename \"$f\"); else echo \"WARNING": "no licence file found for libserialport\"; fi'"
     }
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/sigrokproject/libserialport/archive/refs/tags/libserialport-0.1.2.tar.gz",
      "sha256": "cbb1192a09ff31d34e7efdb17a2f50d9d1974461c0b81c29bb449515d78d8950"
     }
    ]
   },
   {
    "name": "libxdg-basedir",
    "buildsystem": "autotools",
    "build-commands": [
     "./autogen.sh"
    ],
    "post-install": [
     {
      "sh -c 'f=$(ls -1 COPYING COPYING.txt COPYING.LIB LICENSE LICENSE.txt LICENSE.md LICENCE licence.txt 2>/dev/null | head -1); if [ -n \"$f\" ]; then install -Dm644 \"$f\" /app/share/licenses/libxdg-basedir/$(basename \"$f\"); else echo \"WARNING": "no licence file found for libxdg-basedir\"; fi'"
     }
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/devnev/libxdg-basedir/archive/refs/tags/libxdg-basedir-1.2.3.tar.gz",
      "sha256": "ff30c60161f7043df4dcc6e7cdea8e064e382aa06c73dcc3d1885c7d2c77451d"
     }
    ]
   },
   {
    "name": "hidapi",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DHIDAPI_WITH_LIBUSB=OFF",
     "-DHIDAPI_WITH_HIDRAW=ON"
    ],
    "post-install": [
     {
      "sh -c 'f=$(ls -1 COPYING COPYING.txt COPYING.LIB LICENSE LICENSE.txt LICENSE.md LICENCE licence.txt 2>/dev/null | head -1); if [ -n \"$f\" ]; then install -Dm644 \"$f\" /app/share/licenses/hidapi/$(basename \"$f\"); else echo \"WARNING": "no licence file found for hidapi\"; fi'"
     }
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libusb/hidapi/archive/refs/tags/hidapi-0.14.0.tar.gz",
      "sha256": "a5714234abe6e1f53647dd8cba7d69f65f71c558b7896ed218864ffcf405bcbd"
     }
    ]
   },
   {
    "name": "glu",
    "buildsystem": "meson",
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.freedesktop.org/mesa/glu/-/archive/glu-9.0.3/glu-glu-9.0.3.tar.gz",
      "sha256": "7e919cbc1b2677b01d65fc28fd36a19d1f3e23d76663020e0f3b82b991475e8b"
     }
    ]
   },
   {
    "name": "libuv",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_TESTING=OFF"
    ],
    "post-install": [
     {
      "sh -c 'f=$(ls -1 COPYING COPYING.txt COPYING.LIB LICENSE LICENSE.txt LICENSE.md LICENCE licence.txt 2>/dev/null | head -1); if [ -n \"$f\" ]; then install -Dm644 \"$f\" /app/share/licenses/libuv/$(basename \"$f\"); else echo \"WARNING": "no licence file found for libuv\"; fi'"
     }
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libuv/libuv/archive/refs/tags/v1.49.2.tar.gz",
      "sha256": "388ffcf3370d4cf7c4b3a3205504eea06c4be5f9e80d2ab32d19f8235accc1cf"
     }
    ]
   },
   {
    "name": "monocoque",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_GUI=on",
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "build-options": {
     "env": {
      "LIBRARY_PATH": "/app/lib"
     }
    },
    "sources": [
     {
      "type": "dir",
      "path": "..",
      "skip": [
       "src/monocoque/simulatorapi/simapi",
       "src/monocoque/mgui/nappgui_src"
      ]
     },
     {
      "type": "git",
      "url": "https://github.com/spacefreak18/simapi",
      "commit": "50fd181681862256780b2a0f74ef4bc459ed631a",
      "dest": "src/monocoque/simulatorapi/simapi"
     },
     {
      "type": "git",
      "url": "https://github.com/frang75/nappgui_src",
      "commit": "29c7bd3e0243eb38aa9a7e2eafe6cf74830c4ee8",
      "dest": "src/monocoque/mgui/nappgui_src"
     },
     {
      "type": "file",
      "path": "io.github.spacefreak18.monocoque.desktop"
     },
     {
      "type": "file",
      "path": "io.github.spacefreak18.monocoque.metainfo.xml"
     }
    ],
    "post-install": [
     "install -Dm644 LICENSE.rst /app/share/licenses/monocoque/LICENSE.rst",
     "install -Dm644 tools/distro/debian/dpkg/copyright /app/share/licenses/monocoque/copyright",
     "install -Dm644 packaging/licenses/lua-5.4-LICENSE.txt /app/share/licenses/lua5.4/LICENSE",
     "install -Dm644 packaging/licenses/glu-LICENSE.txt /app/share/licenses/glu/LICENSE",
     "install -Dm644 src/monocoque/mgui/nappgui_src/LICENSE /app/share/licenses/nappgui/LICENSE",
     "sh -c 'python3 tools/generate-third-party-notices.py flatpak/io.github.spacefreak18.monocoque.yml > /tmp/notices.md && install -Dm644 /tmp/notices.md /app/share/licenses/THIRD-PARTY-NOTICES.md'"
    ],
    "build-commands": [
     "install -Dm644 io.github.spacefreak18.monocoque.desktop /app/share/applications/io.github.spacefreak18.monocoque.desktop",
     "install -Dm644 io.github.spacefreak18.monocoque.metainfo.xml /app/share/metainfo/io.github.spacefreak18.monocoque.metainfo.xml",
     "install -Dm644 tools/monocoque.svg /app/share/icons/hicolor/scalable/apps/io.github.spacefreak18.monocoque.svg"
    ]
   }
  ]
 }
}