auto-cpufreq/snap/snapcraft.yaml

73 lines
1.6 KiB
YAML
Raw Normal View History

name: auto-cpufreq
2022-06-17 07:04:17 +02:00
base: core22
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.
2020-08-08 14:46:07 +02:00
license: LGPL-3.0
2020-02-09 11:59:39 +01:00
grade: stable
confinement: strict
adopt-info: auto-cpufreq
compression: lzo
parts:
auto-cpufreq:
plugin: python
python-packages:
- setuptools
- wheel
2020-08-05 23:29:19 +02:00
build-packages:
- gcc
- python3-dev
stage-packages:
- coreutils
2021-02-03 16:39:06 +01:00
- dmidecode
source: .
override-pull: |
snapcraftctl pull
snapcraftctl set-version `grep ^VERSION $SNAPCRAFT_PART_SRC/setup.py | sed 's/.*"\(.*\)"/\1/'`
deploy-scripts:
2020-01-22 20:46:02 +01:00
plugin: dump
source: scripts
organize:
cpufreqctl.sh: usr/bin/cpufreqctl.auto-cpufreq
snapdaemon.sh: usr/bin/snapdaemon
2020-01-22 20:46:02 +01:00
plugs:
etc-auto-cpufreq-conf:
interface: system-files
write:
- /etc/auto-cpufreq.conf
apps:
auto-cpufreq:
command: bin/auto-cpufreq
environment:
PYTHONPATH: $SNAP/usr/lib/python3/site-packages:$SNAP/usr/lib/python3/dist-packages:$PYTHONPATH
LC_ALL: C.UTF-8
LANG: C.UTF-8
PKG_MARKER: SNAP
plugs:
- cpu-control
- system-observe
- hardware-observe
- etc-auto-cpufreq-conf
2020-08-05 23:29:19 +02:00
service:
command: usr/bin/snapdaemon
plugs:
- cpu-control
- system-observe
- hardware-observe
- etc-auto-cpufreq-conf
2020-01-24 15:53:25 +01:00
environment:
LC_ALL: C.UTF-8
LANG: C.UTF-8
PKG_MARKER: SNAP
2020-03-24 21:00:39 +01:00
daemon: simple