summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMaxime Gauduin2019-04-17 13:55:03 +0200
committerMaxime Gauduin2019-04-17 13:55:03 +0200
commit77688b3269931a87dde91e16fc57090cf1255326 (patch)
tree575d3e4027b5c12d3fd30d1bb60915368b5f20c7 /PKGBUILD
parent06b65afd897189500ecea4e74d1124b5eca3ec4f (diff)
downloadaur-77688b3269931a87dde91e16fc57090cf1255326.tar.gz
update tlp-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD88
1 files changed, 50 insertions, 38 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5a81c2ee34e..462e4933acf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,58 +2,70 @@
# Contributor: Marc Schulte <bomba@nerdstube.de>
pkgbase=tlp-git
-pkgname=('tlp-git' 'tlp-rdw-git')
-pkgver=0.8.r51.f54b606
+pkgname=(
+ tlp-git
+ tlp-rdw-git
+)
+pkgver=1.2.1.r22.5d2abde
pkgrel=1
-arch=('any')
-url='http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html'
-license=('GPL2' 'GPL3')
-makedepends=('git')
-source=('tlp::git+https://github.com/linrunner/TLP.git')
-sha256sums=('SKIP')
+arch=(any)
+url=https://linrunner.de/en/tlp/tlp.html
+license=(GPL2)
+makedepends=(git)
+source=(git+https://github.com/linrunner/TLP.git)
+sha256sums=(SKIP)
pkgver() {
- cd tlp
-
- tag='0.8'
+ cd TLP
echo "$(git describe --tags | sed 's/-/.r/; s/-g/./')"
}
package_tlp-git() {
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')
- provides=('tlp')
- conflicts=('laptop-mode-tools' 'pm-utils' 'tlp')
- backup=('etc/default/tlp')
-
- cd tlp
-
- 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 install-man
+ depends=(
+ hdparm
+ iw
+ pciutils
+ rfkill
+ usbutils
+ util-linux
+ )
+ optdepends=(
+ 'bash-completion: Bash completion'
+ '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'
+ 'x86_energy_perf_policy: Set energy versus performance policy on x86 processors'
+ )
+ provides=(tlp)
+ conflicts=(
+ laptop-mode-tools
+ pm-utils
+ tlp
+ )
+ backup=(etc/default/tlp)
+
+ 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_WITH_SYSTEMD=1
+ export TLP_WITH_ELOGIND=0
+
+ make DESTDIR="${pkgdir}" -C TLP install-tlp install-man
}
package_tlp-rdw-git() {
pkgdesc='Linux Advanced Power Management - Radio Device Wizard'
- depends=('networkmanager' 'tlp')
- provides=('tlp-rdw')
- conflicts=('tlp-rdw')
-
- cd tlp
+ depends=(
+ networkmanager
+ tlp
+ )
+ provides=(tlp-rdw)
+ conflicts=(tlp-rdw)
- make DESTDIR="${pkgdir}" install-rdw
+ make DESTDIR="${pkgdir}" -C TLP install-rdw install-man-rdw
}
# vim: ts=2 sw=2 et: