From 66572f1fdcb77d24fc2b535111fd460a689575c6 Mon Sep 17 00:00:00 2001 From: lane-brain Date: Fri, 26 Feb 2021 01:57:53 -0500 Subject: [PATCH] New package: auto-cpufreq-1.6.2 --- srcpkgs/auto-cpufreq/files/auto-cpufreq/run | 2 ++ srcpkgs/auto-cpufreq/template | 23 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100755 srcpkgs/auto-cpufreq/files/auto-cpufreq/run create mode 100644 srcpkgs/auto-cpufreq/template diff --git a/srcpkgs/auto-cpufreq/files/auto-cpufreq/run b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run new file mode 100755 index 00000000000..efbc8ed4843 --- /dev/null +++ b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec auto-cpufreq --live --log 2>&1 diff --git a/srcpkgs/auto-cpufreq/template b/srcpkgs/auto-cpufreq/template new file mode 100644 index 00000000000..5be035c9313 --- /dev/null +++ b/srcpkgs/auto-cpufreq/template @@ -0,0 +1,23 @@ +# Template file for 'auto-cpufreq' +pkgname=auto-cpufreq +version=1.6.2 +revision=1 +wrksrc=${pkgname}-${version} +build_style=python3-module +hostmakedepends="python3-setuptools python3-pip python3-wheel python3-devel" +depends="python3-psutil python3-click python3-distro" +short_desc="Automatic CPU speed & power optimizer for Linux" +maintainer="Lane Biocini " +license="LGPL-3.0-or-later" +homepage="https://github.com/AdnanHodzic/auto-cpufreq" +distfiles="https://github.com/AdnanHodzic/auto-cpufreq/archive/v${version}.tar.gz" +checksum=9793b20809459109eebfe8fc13b96a96820a75dacd6ec1a26ca1d0fbbab6a497 + +pre_install() { + vsed -i 's/usr\/local/usr/g' auto_cpufreq/core.py +} + +post_install() { + vinstall scripts/cpufreqctl.sh 755 usr/share/${pkgname}/scripts + vsv auto-cpufreq +}