{
 "app_id": "org.meshtastic.meshtasticd",
 "source_url": "https://raw.githubusercontent.com/flathub/org.meshtastic.meshtasticd/master/org.meshtastic.meshtasticd.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=x11",
  "--device=all"
 ],
 "module_count": 12,
 "fetched_at": "2026-09-21T13:32:02.395745+00:00",
 "manifest": {
  "id": "org.meshtastic.meshtasticd",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "meshtasticd-wrapper.sh",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--device=all",
   "--share=network",
   "--allow=bluetooth"
  ],
  "modules": [
   {
    "name": "meshtasticd-wrapper",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm755 meshtasticd-wrapper.sh /app/bin/meshtasticd-wrapper.sh"
    ],
    "sources": [
     {
      "type": "file",
      "path": "meshtasticd-wrapper.sh"
     }
    ]
   },
   {
    "name": "meshtasticd",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "PLATFORMIO_BUILD_FLAGS": "-L/app/lib",
      "PLATFORMIO_LIBDEPS_DIR": "pio/libdeps",
      "PLATFORMIO_PACKAGES_DIR": "pio/packages",
      "PLATFORMIO_CORE_DIR": "pio/core",
      "PLATFORMIO_SETTING_ENABLE_TELEMETRY": "0",
      "PLATFORMIO_SETTING_CHECK_PLATFORMIO_INTERVAL": "3650",
      "PLATFORMIO_SETTING_CHECK_PRUNE_SYSTEM_THRESHOLD": "10240"
     }
    },
    "build-commands": [
     "install -Dm644 -t /app/share/icons/hicolor/scalable/apps bin/org.meshtastic.meshtasticd.svg",
     "install -Dm644 -t /app/share/applications bin/org.meshtastic.meshtasticd.desktop",
     "desktop-file-edit --set-key=\"Exec\" --set-value=\"meshtasticd-wrapper.sh %U\" /app/share/applications/org.meshtastic.meshtasticd.desktop",
     "install -Dm644 -t /app/share/metainfo bin/org.meshtastic.meshtasticd.metainfo.xml",
     "tp=$(mktemp) && pio_version=$(platformio --version | awk '{print $NF}') && jq -c --arg v \"$pio_version\" '.last_version = $v' pio/core/appstate.json > \"$tp\" && mv \"$tp\" pio/core/appstate.json && echo \"Set PlatformIO version to $pio_version in pio/core/appstate.json\"\n",
     "platformio run -e native-tft --disable-auto-clean",
     "install -Dm755 .pio/build/native-tft/meshtasticd /app/bin/meshtasticd",
     "install -d /app/share/meshtasticd",
     "install -d /app/share/meshtasticd/config.d",
     "install -d /app/share/meshtasticd/available.d",
     "cp -R bin/config.d/* /app/share/meshtasticd/available.d",
     "install -m644 bin/config-dist.yaml /app/share/meshtasticd/config-dist.yaml",
     "install -d /app/share/meshtasticd/maps",
     "for file in pio/libdeps/native-tft/meshtastic-device-ui/maps/*.zip; do bsdtar -xf \"$file\" --no-same-owner --strip-components=1 -C /app/share/meshtasticd/maps; done"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/meshtastic/firmware.git",
      "tag": "v2.7.26.54e0d8d",
      "commit": "54e0d8d0ab2ff56b3a9ce967e53f79e49af560fb",
      "x-checker-data": {
       "is-main-source": true,
       "type": "json",
       "url": "https://api.github.com/repos/meshtastic/firmware/releases/latest",
       "timestamp-query": ".published_at",
       "tag-query": ".tag_name",
       "version-query": "$tag | sub(\"^v\"; \"\")"
      }
     },
     {
      "type": "patch",
      "paths": [
       "patches/stdcppfs.patch"
      ]
     },
     {
      "type": "archive",
      "url": "https://github.com/meshtastic/firmware/releases/download/v2.7.26.54e0d8d/platformio-deps-native-tft-2.7.26.54e0d8d.zip",
      "sha256": "9ce0661d576e0297213890872399379e0faa7c4c1210d8e43ff16114f6860632",
      "strip-components": 1,
      "dest": "pio",
      "x-checker-data": {
       "is-main-source": true,
       "type": "json",
       "url": "https://api.github.com/repos/meshtastic/firmware/releases/latest",
       "timestamp-query": ".published_at",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".assets[] | select(.name==\"platformio-deps-native-tft-\" + $version + \".zip\") | .browser_download_url"
      }
     }
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig",
     "/lib/cmake",
     "/lib/*.a",
     "/share/man"
    ],
    "modules": [
     "python3-requirements.yaml",
     {
      "name": "yaml-cpp",
      "buildsystem": "cmake-ninja",
      "config-opts": [
       "-DBUILD_SHARED_LIBS=ON",
       "-DYAML_BUILD_SHARED_LIBS=ON",
       "-DYAML_CPP_BUILD_TOOLS=OFF",
       "-DYAML_CPP_BUILD_TESTS=OFF",
       "-DYAML_CPP_BUILD_CONTRIB=OFF"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/jbeder/yaml-cpp/archive/refs/tags/yaml-cpp-0.9.0.tar.gz",
        "sha256": "25cb043240f828a8c51beb830569634bc7ac603978e0f69d6b63558dadefd49a",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 5284,
         "stable-only": true,
         "url-template": "https://github.com/jbeder/yaml-cpp/archive/refs/tags/yaml-cpp-$version.tar.gz"
        }
       }
      ]
     },
     {
      "name": "libgpiod",
      "buildsystem": "meson",
      "config-opts": [
       "-Dtests=disabled",
       "-Dexamples=disabled"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-2.3.1.tar.gz",
        "sha256": "2e33d17f74cefadf85825f601829a68156f669348071be8470dcd700029a14af",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 20640,
         "stable-only": true,
         "url-template": "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-$version.tar.gz"
        }
       }
      ],
      "modules": [
       {
        "name": "catch2",
        "buildsystem": "cmake-ninja",
        "builddir": true,
        "config-opts": [
         "-DCMAKE_BUILD_TYPE=Release"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://github.com/catchorg/Catch2/archive/refs/tags/v3.16.0.tar.gz",
          "sha256": "0957cae5821b17ce07f0833aaa52b5137643a8382203221f363a8303c109af34",
          "x-checker-data": {
           "type": "anitya",
           "project-id": 7680,
           "stable-only": true,
           "url-template": "https://github.com/catchorg/Catch2/archive/refs/tags/v$version.tar.gz"
          }
         }
        ]
       }
      ]
     },
     {
      "name": "i2c-tools",
      "buildsystem": "simple",
      "build-commands": [
       "make PREFIX=${FLATPAK_DEST} install"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/snapshot/i2c-tools-4.4.tar.gz",
        "sha256": "af01d0fbe78e109a2db7137c7e9bfda3f3fb236c3177744c0f2695d1056cde71",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 9272,
         "stable-only": true,
         "url-template": "https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/snapshot/i2c-tools-$version.tar.gz"
        }
       }
      ]
     },
     {
      "name": "libuv",
      "buildsystem": "cmake-ninja",
      "config-opts": [
       "-DCMAKE_BUILD_TYPE=Release"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/libuv/libuv/",
        "tag": "v1.52.1",
        "commit": "1cfa32ff59c076ffb6ed735bbc8c18361558661f",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 10784,
         "stable-only": true,
         "tag-template": "v${version}"
        }
       }
      ],
      "cleanup": [
       "/bin"
      ]
     },
     {
      "name": "libevdev",
      "buildsystem": "meson",
      "config-opts": [
       "-Dtests=disabled",
       "-Ddocumentation=disabled"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://www.freedesktop.org/software/libevdev/libevdev-1.13.7.tar.xz",
        "sha256": "0caf824971108f15bb2ad356433bae198d7d3bf1e82d43f63626e069e060bfa6",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 20540,
         "stable-only": true,
         "url-template": "https://www.freedesktop.org/software/libevdev/libevdev-$version.tar.xz"
        }
       }
      ],
      "cleanup": [
       "/bin"
      ]
     },
     {
      "name": "libinput",
      "buildsystem": "meson",
      "config-opts": [
       "--libexec=lib",
       "-Dlibwacom=false",
       "-Ddebug-gui=false",
       "-Dtests=false",
       "-Ddocumentation=false",
       "-Dzshcompletiondir=no"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://gitlab.freedesktop.org/libinput/libinput/-/archive/1.32.0/libinput-1.32.0.tar.gz",
        "sha256": "7dd6c1ca964c86eb6810ccd6639cda634e68bdca43bf3afec39e94e942fac8d4",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 5781,
         "stable-only": true,
         "url-template": "https://gitlab.freedesktop.org/libinput/libinput/-/archive/$version/libinput-$version.tar.gz"
        }
       }
      ],
      "cleanup": [
       "/bin",
       "/etc",
       "/lib/libinput",
       "/lib/udev",
       "/share"
      ],
      "modules": [
       {
        "name": "mtdev",
        "buildsystem": "autotools",
        "config-opts": [
         "--disable-static"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://bitmath.org/code/mtdev/mtdev-1.1.7.tar.bz2",
          "mirror-urls": [
           "https://ftp.osuosl.org/pub/blfs/conglomeration/mtdev/mtdev-1.1.7.tar.bz2",
           "https://mirror.freedif.org/pub/blfs/conglomeration/mtdev/mtdev-1.1.7.tar.bz2"
          ],
          "sha256": "a107adad2101fecac54ac7f9f0e0a0dd155d954193da55c2340c97f2ff1d814e",
          "x-checker-data": {
           "type": "anitya",
           "project-id": 8868,
           "stable-only": true,
           "url-template": "https://bitmath.org/code/mtdev/mtdev-$version.tar.bz2"
          }
         },
         {
          "type": "shell",
          "commands": [
           "cp -p /usr/share/automake-*/config.{sub,guess} config-aux/"
          ]
         }
        ],
        "cleanup": [
         "/bin",
         "/lib/*.la"
        ]
       }
      ]
     },
     {
      "name": "xkbcommon",
      "buildsystem": "meson",
      "config-opts": [
       "--buildtype=release",
       "-Ddefault_library=static",
       "-Denable-docs=false",
       "-Denable-tools=false",
       "-Denable-bash-completion=false",
       "-Dx-locale-root=/usr/share/X11/locale"
      ],
      "cleanup": [
       "/bin",
       "/libexec"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://xkbcommon.org/download/libxkbcommon-1.7.0.tar.xz",
        "sha256": "65782f0a10a4b455af9c6baab7040e2f537520caa2ec2092805cdfd36863b247",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 1780,
         "stable-only": true,
         "url-template": "https://xkbcommon.org/download/libxkbcommon-$version.tar.xz"
        }
       }
      ]
     }
    ]
   }
  ]
 }
}