[arch-commits] Commit in tlp/repos/community-any (PKGBUILD PKGBUILD tlp.install)

Maxime Gauduin alucryd at archlinux.org
Tue Feb 4 11:24:56 UTC 2020


    Date: Tuesday, February 4, 2020 @ 11:24:55
  Author: alucryd
Revision: 562026

archrelease: copy trunk to community-any

Added:
  tlp/repos/community-any/PKGBUILD
    (from rev 562025, tlp/trunk/PKGBUILD)
  tlp/repos/community-any/tlp.install
    (from rev 562025, tlp/trunk/tlp.install)
Deleted:
  tlp/repos/community-any/PKGBUILD

-------------+
 PKGBUILD    |  138 +++++++++++++++++++++++++++++-----------------------------
 tlp.install |    9 +++
 2 files changed, 80 insertions(+), 67 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-04 11:24:49 UTC (rev 562025)
+++ PKGBUILD	2020-02-04 11:24:55 UTC (rev 562026)
@@ -1,67 +0,0 @@
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-# Contributor: Marc Schulte <bomba at nerdstube.de>
-
-pkgbase=tlp
-pkgname=(
-  tlp
-  tlp-rdw
-)
-pkgver=1.2.2
-pkgrel=1
-arch=(any)
-url=https://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)
-
-  cd TLP
-
-  export TLP_NO_INIT=1
-  export TLP_SBIN=/usr/bin
-  export TLP_SYSD=/usr/lib/systemd/system
-  export TLP_ULIB=/usr/lib/udev
-  export TLP_WITH_ELOGIND=0
-  export TLP_WITH_SYSTEMD=1
-
-  make DESTDIR="${pkgdir}" install-tlp install-man
-}
-
-package_tlp-rdw() {
-  pkgdesc='Linux Advanced Power Management - Radio Device Wizard'
-  depends=(
-    networkmanager
-    tlp
-  )
-
-  cd TLP
-
-  make DESTDIR="${pkgdir}" install-rdw install-man-rdw
-}
-
-# vim: ts=2 sw=2 et:

Copied: tlp/repos/community-any/PKGBUILD (from rev 562025, tlp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-02-04 11:24:55 UTC (rev 562026)
@@ -0,0 +1,71 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Marc Schulte <bomba at nerdstube.de>
+
+pkgbase=tlp
+pkgname=(
+  tlp
+  tlp-rdw
+)
+pkgver=1.3.0
+pkgrel=1
+arch=(any)
+url=https://linrunner.de/en/tlp/tlp.html
+license=(GPL2)
+makedepends=(git)
+source=(git+https://github.com/linrunner/TLP.git#tag=538766b577d45b767aeb5755e10dfaec66f97512)
+sha256sums=(SKIP)
+install=tlp.install
+
+pkgver() {
+  cd TLP
+
+  git describe --tags
+}
+
+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/tlp.conf)
+
+  export TLP_NO_INIT=1
+  export TLP_SBIN=/usr/bin
+  export TLP_SDSL=/usr/lib/systemd/system-sleep
+  export TLP_SYSD=/usr/lib/systemd/system
+  export TLP_ULIB=/usr/lib/udev
+  export TLP_WITH_ELOGIND=0
+  export TLP_WITH_SYSTEMD=1
+
+  make DESTDIR="${pkgdir}" -C TLP install-tlp install-man-tlp
+}
+
+package_tlp-rdw() {
+  pkgdesc='Linux Advanced Power Management - Radio Device Wizard'
+  depends=(
+    networkmanager
+    tlp
+  )
+
+  make DESTDIR="${pkgdir}" -C TLP install-rdw install-man-rdw
+}
+
+# vim: ts=2 sw=2 et:

Copied: tlp/repos/community-any/tlp.install (from rev 562025, tlp/trunk/tlp.install)
===================================================================
--- tlp.install	                        (rev 0)
+++ tlp.install	2020-02-04 11:24:55 UTC (rev 562026)
@@ -0,0 +1,9 @@
+post_upgrade() {
+  if [[ $(vercmp $2 1.3.0) < 0 ]]; then
+    cat << EOF
+The default TLP configuration has moved from /etc/default/tlp to /etc/tlp.conf.
+The syntax is the same, you can move your old configuration or start fresh.
+EOF
+  fi
+}
+



More information about the arch-commits mailing list