{
 "app_id": "io.github.intel.ThermalMonitor",
 "source_url": "https://raw.githubusercontent.com/mbugni/ThermalMonitorFlatpak/main/io.github.intel.ThermalMonitor.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-24.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--socket=wayland",
  "--socket=fallback-x11",
  "--share=ipc",
  "--share=network",
  "--system-talk-name=org.freedesktop.thermald",
  "--env=KDE_FULL_SESSION=false"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-20T13:05:23.185000+00:00",
 "manifest": {
  "app-id": "io.github.intel.ThermalMonitor",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-24.08",
  "sdk": "org.kde.Sdk",
  "command": "ThermalMonitor",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--system-talk-name=org.freedesktop.thermald",
   "--env=KDE_FULL_SESSION=false"
  ],
  "cleanup": [
   "/include",
   "/lib/*.a",
   "/lib/*.la",
   "/lib/pkgconfig",
   "/lib/cmake",
   "/share/doc",
   "/share/cmake",
   "/share/man"
  ],
  "modules": [
   {
    "name": "thermalmonitor-build",
    "buildsystem": "qmake",
    "builddir": true,
    "subdir": "tools/thermal_monitor",
    "config-opts": [
     "CONFIG+=release",
     "HEADERS+=qcustomplot.h",
     "SOURCES+=qcustomplot.cpp"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/intel/thermal_daemon",
      "tag": "v2.5.9"
     },
     {
      "type": "archive",
      "url": "https://www.qcustomplot.com/release/2.1.1/QCustomPlot-source.tar.gz",
      "sha256": "5e2d22dec779db8f01f357cbdb25e54fbcf971adaee75eae8d7ad2444487182f"
     },
     {
      "type": "shell",
      "commands": [
       "mv qcustomplot.h tools/thermal_monitor/",
       "mv qcustomplot.cpp tools/thermal_monitor/",
       "sed -i -e 's/^LIBS/\\#LIBS/' tools/thermal_monitor/ThermalMonitor.pro"
      ]
     }
    ],
    "post-install": [
     "install -Dm 755 ThermalMonitor /app/bin/ThermalMonitor"
    ]
   },
   {
    "name": "thermalmonitor-desktop",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "file",
      "path": "io.github.intel.ThermalMonitor.metainfo.xml"
     },
     {
      "type": "file",
      "path": "io.github.intel.ThermalMonitor.desktop"
     },
     {
      "type": "file",
      "path": "io.github.intel.ThermalMonitor.svg"
     }
    ],
    "build-commands": [
     "install -Dm 644 io.github.intel.ThermalMonitor.metainfo.xml -t /app/share/metainfo",
     "install -Dm 644 io.github.intel.ThermalMonitor.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm 644 io.github.intel.ThermalMonitor.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg"
    ]
   }
  ]
 }
}