[arch-commits] Commit in tlp/trunk (PKGBUILD tlp.install)
Maxime Gauduin
alucryd at archlinux.org
Tue Feb 4 11:24:49 UTC 2020
Date: Tuesday, February 4, 2020 @ 11:24:49
Author: alucryd
Revision: 562025
upgpkg: tlp 1.3.0-1
Added:
tlp/trunk/tlp.install
Modified:
tlp/trunk/PKGBUILD
-------------+
PKGBUILD | 22 +++++++++++++---------
tlp.install | 9 +++++++++
2 files changed, 22 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-02-04 10:10:52 UTC (rev 562024)
+++ PKGBUILD 2020-02-04 11:24:49 UTC (rev 562025)
@@ -6,15 +6,22 @@
tlp
tlp-rdw
)
-pkgver=1.2.2
+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=${pkgver})
+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=(
@@ -38,18 +45,17 @@
laptop-mode-tools
pm-utils
)
- backup=(etc/default/tlp)
+ backup=(etc/tlp.conf)
- cd TLP
-
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}" install-tlp install-man
+ make DESTDIR="${pkgdir}" -C TLP install-tlp install-man-tlp
}
package_tlp-rdw() {
@@ -59,9 +65,7 @@
tlp
)
- cd TLP
-
- make DESTDIR="${pkgdir}" install-rdw install-man-rdw
+ make DESTDIR="${pkgdir}" -C TLP install-rdw install-man-rdw
}
# vim: ts=2 sw=2 et:
Added: tlp.install
===================================================================
--- tlp.install (rev 0)
+++ tlp.install 2020-02-04 11:24:49 UTC (rev 562025)
@@ -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