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 # Simpler way of preventing KDE related errors - --env=KDE_FULL_SESSION=false cleanup: - /include - /lib/*.a - /lib/*.la - /lib/pkgconfig - /lib/cmake - /share/doc - /share/cmake - /share/man modules: # Build the app from Git sources - 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 # Install freedesktop files (see https://www.freedesktop.org/) - 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 desktop files and icons - 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