summaryrefslogtreecommitdiffstats
path: root/source/ap/lm_sensors/lm_sensors.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/lm_sensors/lm_sensors.SlackBuild')
-rwxr-xr-xsource/ap/lm_sensors/lm_sensors.SlackBuild11
1 files changed, 4 insertions, 7 deletions
diff --git a/source/ap/lm_sensors/lm_sensors.SlackBuild b/source/ap/lm_sensors/lm_sensors.SlackBuild
index b3a41b69a..e4971880a 100755
--- a/source/ap/lm_sensors/lm_sensors.SlackBuild
+++ b/source/ap/lm_sensors/lm_sensors.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2006, 2008, 2009, 2010, 2012, 2013 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2006, 2008, 2009, 2010, 2012, 2013, 2015 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -28,7 +28,7 @@ BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
+ i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;;
@@ -62,11 +62,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Configure:
-zcat $CWD/lm_sensors.makefile.diff.gz | patch -p1 --verbose || exit 1
-
-make user LIBDIR=/usr/lib${LIBDIRSUFFIX} || exit 1
-make user_install LIBDIR=/usr/lib${LIBDIRSUFFIX} || exit 1
+make user PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX} || exit 1
+make user_install PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG || exit 1
# Nope.
rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.a