Changeset View
Changeset View
Standalone View
Standalone View
package.yml
| name : tlp | name : tlp | ||||
| version : 1.3.1 | version : 1.3.1 | ||||
| release : 15 | release : 16 | ||||
| source : | source : | ||||
| - https://github.com/linrunner/TLP/archive/1.3.1.tar.gz : 4c783606ca6e98a3ddb3dc911785b4d7a73fec4ebb9decfca4ca15e315ece768 | - https://github.com/linrunner/TLP/archive/1.3.1.tar.gz : 4c783606ca6e98a3ddb3dc911785b4d7a73fec4ebb9decfca4ca15e315ece768 | ||||
| license : GPL-2.0-only | license : GPL-2.0-only | ||||
| component : system.utils | component : system.utils | ||||
| summary : Linux Advanced Power Management | summary : Linux Advanced Power Management | ||||
| description: | | description: | | ||||
| Linux Advanced Power Management | Linux Advanced Power Management | ||||
| builddeps : | builddeps : | ||||
| - hdparm | - hdparm | ||||
| - iw | - iw | ||||
| rundeps : | rundeps : | ||||
| - linux-tools-x86_energy_perf_policy | - linux-tools-x86_energy_perf_policy | ||||
| setup : | | setup : | | ||||
| %patch -p1 < $pkgfiles/0001-Don-t-enable-tlp-service-on-virtualised-platforms.patch | %apply_patches | ||||
| %patch -p1 < $pkgfiles/0002-enable_default_settings_in_conf.patch | |||||
| build : | | build : | | ||||
| export TLP_LIBDIR='%libdir%' | export TLP_LIBDIR='%libdir%' | ||||
| export TLP_SBIN='/usr/sbin' | export TLP_SBIN='/usr/sbin' | ||||
| export TLP_ULIB='%libdir%/udev/' | export TLP_ULIB='%libdir%/udev/' | ||||
| %make | %make | ||||
| install : | | install : | | ||||
| export TLP_NO_INIT='1' | export TLP_NO_INIT='1' | ||||
| export TLP_SYSD='%libdir%/systemd/system/' | export TLP_SYSD='%libdir%/systemd/system/' | ||||
| export TLP_ULIB='%libdir%/udev/' | export TLP_ULIB='%libdir%/udev/' | ||||
| export TLP_WITH_ELOGIND='0' | export TLP_WITH_ELOGIND='0' | ||||
| %make_install install-man | %make_install install-man | ||||
| rm -rf $installdir/var | rm -rf $installdir/var | ||||
| # Enable by default, users can disable now with systemctl mask tlp | # Enable by default, users can disable now with systemctl mask tlp | ||||
| install -Ddm 00755 $installdir/%libdir%/systemd/system/multi-user.target.wants | install -Ddm 00755 $installdir/%libdir%/systemd/system/multi-user.target.wants | ||||
| ln -sv ../tlp.service $installdir/%libdir%/systemd/system/multi-user.target.wants | ln -sv ../tlp.service $installdir/%libdir%/systemd/system/multi-user.target.wants | ||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.