desktop/tlp/PKGBUILD
Francesco Marinucci a405f10b76 tlp: update to 1.0
2017-07-31 15:10:05 +01:00

45 lines
1.4 KiB
Bash

pkgbase=tlp
pkgname=('tlp' 'tlp-rdw')
pkgver=1.0
pkgrel=1
arch=('x86_64')
url='http://linrunner.de/en/tlp/tlp.html'
license=('GPL2' 'GPL3')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/linrunner/TLP/archive/${pkgver}.tar.gz"
'default')
sha256sums=('642717b27db3a70c2cdef2673fe3229bf314488aa0797515e63d933b93bc78ec'
'7f86f31ee86235eac6a57e4d647d6f41489b3eaa10037cca1460eb3ff091b567')
package_tlp() {
pkgdesc='Linux Advanced Power Management'
depends=('hdparm' 'iw' 'pciutils' 'rfkill' 'usbutils' 'util-linux')
optdepends=('acpi_call: Sandy Bridge and newer ThinkPad battery functions'
'ethtool: Disable Wake On Lan'
'lsb-release: Display LSB release version in tlp-stat'
'smartmontools: Display S.M.A.R.T. data in tlp-stat'
'tp_smapi: ThinkPad battery functions'
'x86_energy_perf_policy: Set energy versus performance policy on x86 processors')
conflicts=('laptop-mode-tools' 'pm-utils')
backup=('etc/default/tlp')
cd TLP-${pkgver}
export TLP_SBIN='/usr/bin'
export TLP_ULIB='/usr/lib/udev'
export TLP_SYSD='/usr/lib/systemd/system'
export TLP_NO_INIT='1'
export TLP_NO_PMUTILS='1'
export TLP_WITH_SYSTEMD='1'
make DESTDIR="${pkgdir}" install-tlp
}
package_tlp-rdw() {
pkgdesc='Linux Advanced Power Management - Radio Device Wizard'
depends=('networkmanager' 'tlp')
cd TLP-${pkgver}
make DESTDIR="${pkgdir}" install-rdw
}