[arch-commits] Commit in tlp/repos (3 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Sun Mar 6 15:50:45 UTC 2022


    Date: Sunday, March 6, 2022 @ 15:50:45
  Author: foutrelis
Revision: 1142560

archrelease: copy trunk to community-staging-any

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

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

Copied: tlp/repos/community-staging-any/PKGBUILD (from rev 1142559, tlp/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2022-03-06 15:50:45 UTC (rev 1142560)
@@ -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.5.0
+pkgrel=5
+arch=(any)
+url=https://linrunner.de/en/tlp/tlp.html
+license=(GPL2)
+makedepends=(git)
+_tag=fac9cdbbf976a65ed34397f6daac9d775c4a56f0
+source=(git+https://github.com/linrunner/TLP.git#tag=${_tag})
+sha256sums=(SKIP)
+install=tlp.install
+
+pkgver() {
+  cd TLP
+  git describe --tags
+}
+
+package_tlp() {
+  pkgdesc='Linux Advanced Power Management'
+  depends=(
+    hdparm
+    iw
+    pciutils
+    perl
+    rfkill
+    usbutils
+    util-linux
+  )
+  optdepends=(
+    'acpi_call: ThinkPad battery functions, Sandy Bridge and newer'
+    'bash-completion: Bash completion'
+    'ethtool: Disable Wake On Lan'
+    'smartmontools: Display S.M.A.R.T. data in tlp-stat'
+    'tp_smapi: ThinkPad battery functions'
+  )
+  conflicts=(
+    laptop-mode-tools
+    pm-utils
+    power-profiles-daemon
+  )
+  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-staging-any/tlp.install (from rev 1142559, tlp/trunk/tlp.install)
===================================================================
--- community-staging-any/tlp.install	                        (rev 0)
+++ community-staging-any/tlp.install	2022-03-06 15:50:45 UTC (rev 1142560)
@@ -0,0 +1,9 @@
+post_upgrade() {
+  if [ $(vercmp $2 1.3.0) -lt 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