#Packager: Dimitris Tzemos pkgname=TLP pkgver=1.8.0 pkgrel=1dj source=("https://github.com/linrunner/TLP/archive/$pkgver/TLP-$pkgver.tar.gz") docs=("COPYING" "LICENSE" "README.rst") url="https://github.com/linrunner/TLP" options=('noautodotnew') dotnew=('/etc/tlp.conf') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "TLP (Optimize power usage)" "TLP brings the benefits of advanced power management for Linux" "without the need to understand every technical detail." "It comes with a default configuration already optimized for battery" "life. Customization can be done by editing its config files." "" "Website: https://linrunner.de/tlp/" ) build() { cd $SRC/$pkgname-$pkgver make DESTDIR=$PKG \ TLP_WITH_SYSTEMD=0 TLP_WITH_ELOGIND=1 \ TLP_ELOD=/lib${LIBDIRSUFFIX}/elogind/system-sleep \ TLP_ULIB=/lib/udev \ TLP_MAN=/usr/man \ TLP_SYSV=/etc/rc.d \ install-tlp install-man-tlp || return 1 # Don't clobber configs #mv $PKG/etc/tlp.conf $PKG/etc/tlp.conf.new # move to rc.tlp mv $PKG/etc/rc.d/tlp $PKG/etc/rc.d/rc.tlp.new || return 1 chmod 644 $PKG/etc/rc.d/rc.tlp.new || return 1 }