diff options
Diffstat (limited to 'system/laptop-mode-tools')
-rw-r--r-- | system/laptop-mode-tools/README | 13 | ||||
-rw-r--r-- | system/laptop-mode-tools/laptop-mode-tools.SlackBuild | 24 | ||||
-rw-r--r-- | system/laptop-mode-tools/laptop-mode-tools.info | 8 |
3 files changed, 27 insertions, 18 deletions
diff --git a/system/laptop-mode-tools/README b/system/laptop-mode-tools/README index 766e632144..7394ad19de 100644 --- a/system/laptop-mode-tools/README +++ b/system/laptop-mode-tools/README @@ -1,10 +1,13 @@ Laptop Mode Tools is a laptop power saving package for Linux systems. -It allows you to extend the battery life of your laptop in several ways. -It is the primary way to enable the Laptop Mode feature of the Linux kernel, -which lets your hard drive spin down. In addition, it allows you to tweak -a number of other power-related settings using a simple configuration file. +It allows you to extend the battery life of your laptop in several +ways. It is the primary way to enable the Laptop Mode feature of the +Linux kernel, which lets your hard drive spin down. In addition, it +allows you to tweak a number of other power-related settings using a +simple configuration file. + +To launch laptop-mode-tools on system start, add the following to +rc.local: -To launch laptop-mode-tools on system start, add the following to rc.local: if [ -x /etc/rc.d/rc.laptop-mode ]; then /etc/rc.d/rc.laptop-mode start fi diff --git a/system/laptop-mode-tools/laptop-mode-tools.SlackBuild b/system/laptop-mode-tools/laptop-mode-tools.SlackBuild index 777d8d5ea5..2c17eb3f84 100644 --- a/system/laptop-mode-tools/laptop-mode-tools.SlackBuild +++ b/system/laptop-mode-tools/laptop-mode-tools.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for laptop-mode-tools # Copyright 2010 V'yacheslav Stetskevych <slava18@gmail.com> @@ -23,10 +23,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=laptop-mode-tools -VERSION=${VERSION:-1.72.2} +VERSION=${VERSION:-1.74} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +39,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -66,11 +76,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Put udev rules in /lib/udev/rules.d/ instead of /etc/udev/rules.d/ -sed -i 's|etc/udev|lib/udev|' install.sh - -DESTDIR=$PKG INIT_D=$PKG/etc/rc.d MAN_D=/usr/man ./install.sh -install -d $PKG/var/run/laptop-mode-tools +DESTDIR=$PKG INIT_D=$PKG/etc/rc.d MAN_D=/usr/man SYSTEMD=no ./install.sh [ "$LIBDIRSUFFIX" = "64" ] && mv $PKG/usr/lib $PKG/usr/lib64 @@ -89,4 +95,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/system/laptop-mode-tools/laptop-mode-tools.info b/system/laptop-mode-tools/laptop-mode-tools.info index 409c3e9140..9f8c506dd4 100644 --- a/system/laptop-mode-tools/laptop-mode-tools.info +++ b/system/laptop-mode-tools/laptop-mode-tools.info @@ -1,10 +1,10 @@ PRGNAM="laptop-mode-tools" -VERSION="1.72.2" +VERSION="1.74" HOMEPAGE="https://github.com/rickysarraf/laptop-mode-tools" -DOWNLOAD="https://github.com/rickysarraf/laptop-mode-tools/archive/1.72.2/laptop-mode-tools-1.72.2.tar.gz" -MD5SUM="8a7b3658b0137ce893fe6a224fffd7ba" +DOWNLOAD="https://github.com/rickysarraf/laptop-mode-tools/archive/1.74/laptop-mode-tools-1.74.tar.gz" +MD5SUM="990f7aa20adffd2d3482ad57385399a4" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="python3-PyQt5" +REQUIRES="" MAINTAINER="Willy Sudiarto Raharjo" EMAIL="willysr@slackbuilds.org" |