auto-cpufreq/snap/snapcraft.yaml

57 lines
1.2 KiB
YAML

name: auto-cpufreq
base: core18
version: '1.2.2'
summary: Automatic CPU speed & power optimizer for Linux
description: |
Automatic CPU speed & power optimizer for Linux based on active
monitoring of laptop's battery state, CPU usage and system load.
Ultimately allowing you to improve battery life without making
any compromises.
license: LGPL-3.0
grade: stable
confinement: strict
parts:
auto-cpufreq:
plugin: python
python-version: python3
build-packages:
- gcc
- python3-dev
- python3-wheel
stage-packages:
- inxi
- lm-sensors
source: .
deploy-cpufrectl:
plugin: dump
source: scripts
organize:
cpufreqctl.sh: usr/bin/cpufreqctl
apps:
auto-cpufreq:
command: bin/auto-cpufreq
plugs:
- cpu-control
- system-observe
- hardware-observe
environment:
LC_ALL: C.UTF-8
LANG: C.UTF-8
PKG_MARKER: SNAP
service:
command: bin/auto-cpufreq --daemon 2>&1 | tee -a $SNAP_DATA/auto-cpufreq.log
plugs:
- cpu-control
- system-observe
- hardware-observe
environment:
LC_ALL: C.UTF-8
LANG: C.UTF-8
PKG_MARKER: SNAP
daemon: simple