[arch-commits] Commit in tlp/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Mon Mar 11 07:53:31 UTC 2019


    Date: Monday, March 11, 2019 @ 07:53:29
  Author: alucryd
Revision: 439705

upgpkg: tlp 1.2-1

Modified:
  tlp/trunk/PKGBUILD

----------+
 PKGBUILD |   71 +++++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 44 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-11 07:51:53 UTC (rev 439704)
+++ PKGBUILD	2019-03-11 07:53:29 UTC (rev 439705)
@@ -2,36 +2,50 @@
 # Contributor: Marc Schulte <bomba at nerdstube.de>
 
 pkgbase=tlp
-pkgname=('tlp' 'tlp-rdw')
-pkgver=1.1
+pkgname=(
+  tlp
+  tlp-rdw
+)
+pkgver=1.2
 pkgrel=1
-arch=('any')
-url='http://linrunner.de/en/tlp/tlp.html'
-license=('GPL2' 'GPL3')
-source=("tlp-${pkgver}.tar.gz::https://github.com/linrunner/TLP/archive/${pkgver}.tar.gz")
-sha256sums=('76e1a091eed1055f7af75f49621be51ed41b1e8f872eeb9506c0749060fd1019')
+arch=(any)
+url=http://linrunner.de/en/tlp/tlp.html
+license=(GPL2)
+makedepends=(git)
+source=(git+https://github.com/linrunner/TLP.git#tag=${pkgver})
+sha256sums=(SKIP)
 
 package_tlp() {
   pkgdesc='Linux Advanced Power Management'
-  depends=('hdparm' 'iw' 'pciutils' 'rfkill' 'usbutils' 'util-linux')
-  optdepends=('acpi_call: ThinkPad battery functions, Sandy Bridge and newer'
-              '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'
-              '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')
+  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'
+  )
+  conflicts=(
+    laptop-mode-tools
+    pm-utils
+  )
+  backup=(etc/default/tlp)
 
-  cd TLP-${pkgver}
+  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'
+  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
 }
@@ -38,11 +52,14 @@
 
 package_tlp-rdw() {
   pkgdesc='Linux Advanced Power Management - Radio Device Wizard'
-  depends=('networkmanager' 'tlp')
+  depends=(
+    networkmanager
+    tlp
+  )
 
-  cd TLP-${pkgver}
+  cd TLP
 
-  make DESTDIR="${pkgdir}" install-rdw
+  make DESTDIR="${pkgdir}" install-rdw install-man-rdw
 }
 
 # vim: ts=2 sw=2 et:


More information about the arch-commits mailing list