summaryrefslogtreecommitdiff
path: root/system/laptop-mode-tools
diff options
context:
space:
mode:
Diffstat (limited to 'system/laptop-mode-tools')
-rw-r--r--system/laptop-mode-tools/laptop-mode-tools.SlackBuild22
-rw-r--r--system/laptop-mode-tools/laptop-mode-tools.info8
-rw-r--r--system/laptop-mode-tools/slack-desc2
3 files changed, 15 insertions, 17 deletions
diff --git a/system/laptop-mode-tools/laptop-mode-tools.SlackBuild b/system/laptop-mode-tools/laptop-mode-tools.SlackBuild
index 41cff2d183..fca19c7bfc 100644
--- a/system/laptop-mode-tools/laptop-mode-tools.SlackBuild
+++ b/system/laptop-mode-tools/laptop-mode-tools.SlackBuild
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=laptop-mode-tools
-VERSION=${VERSION:-1.61}
+VERSION=${VERSION:-1.70}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,7 +40,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
+if [ "$ARCH" = "i586" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
LIBDIRSUFFIX=""
@@ -56,14 +56,14 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/${PRGNAM}_$VERSION.tar.gz
-cd ${PRGNAM}_$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -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
@@ -80,9 +80,7 @@ mv $PKG/etc/rc.d/laptop-mode $PKG/etc/rc.d/rc.laptop-mode.new
find $PKG/etc/laptop-mode -name '*.conf' -exec mv {} {}.new \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- README COPYING \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.md COPYING $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/system/laptop-mode-tools/laptop-mode-tools.info b/system/laptop-mode-tools/laptop-mode-tools.info
index 2fb30b2008..4bf0c158a8 100644
--- a/system/laptop-mode-tools/laptop-mode-tools.info
+++ b/system/laptop-mode-tools/laptop-mode-tools.info
@@ -1,8 +1,8 @@
PRGNAM="laptop-mode-tools"
-VERSION="1.61"
-HOMEPAGE="http://www.samwel.tk/laptop_mode/"
-DOWNLOAD="http://samwel.tk/laptop_mode/tools/downloads/laptop-mode-tools_1.61.tar.gz"
-MD5SUM="6685af5dbb34c3d51ca27933b58f484e"
+VERSION="1.70"
+HOMEPAGE="https://github.com/rickysarraf/laptop-mode-tools"
+DOWNLOAD="https://github.com/rickysarraf/laptop-mode-tools/archive/1.70/laptop-mode-tools-1.70.tar.gz"
+MD5SUM="62369c9139ca69ea1e72fe1cb3a925eb"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/system/laptop-mode-tools/slack-desc b/system/laptop-mode-tools/slack-desc
index c21cd0868e..114dc785e9 100644
--- a/system/laptop-mode-tools/slack-desc
+++ b/system/laptop-mode-tools/slack-desc
@@ -15,5 +15,5 @@ laptop-mode-tools: of the Linux kernel, which lets your hard drive spin down.
laptop-mode-tools: In addition, it allows you to tweak a number of other power-related
laptop-mode-tools: settings using a simple configuration file.
laptop-mode-tools:
-laptop-mode-tools: Homepage: http://www.samwel.tk/laptop_mode/
+laptop-mode-tools: Homepage: https://github.com/rickysarraf/laptop-mode-tools
laptop-mode-tools: