summaryrefslogtreecommitdiff
path: root/libraries/cpufrequtils/cpufrequtils.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-12 17:40:25 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-12 17:40:25 +0200
commit128707f5d5369eba84997086ece6ad9604d60473 (patch)
tree3f946e916130586462823f458a872113ba60e137 /libraries/cpufrequtils/cpufrequtils.SlackBuild
parent0b784f7f43700b8ea2c91d843168b4e9fd0eb70f (diff)
downloadslackbuilds-128707f5d5369eba84997086ece6ad9604d60473.tar.gz
libraries/cpufrequtils: Updated for version 005
Diffstat (limited to 'libraries/cpufrequtils/cpufrequtils.SlackBuild')
-rw-r--r--libraries/cpufrequtils/cpufrequtils.SlackBuild32
1 files changed, 20 insertions, 12 deletions
diff --git a/libraries/cpufrequtils/cpufrequtils.SlackBuild b/libraries/cpufrequtils/cpufrequtils.SlackBuild
index f03226bd29..913d1885cf 100644
--- a/libraries/cpufrequtils/cpufrequtils.SlackBuild
+++ b/libraries/cpufrequtils/cpufrequtils.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for cpufrequtils
-# Copyright 2006-2007 Robby Workman (http://rlworkman.net)
+# Copyright 2006-2008 Robby Workman, Northport, Alabama, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,13 +22,12 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Modified by the SlackBuilds.org project
-
PRGNAM=cpufrequtils
-VERSION=002
+VERSION=005
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -36,28 +35,37 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-CFLAGS="$SLKCFLAGS" make || exit 1
-make install DESTDIR=$PKG || exit 1
+make libdir=/usr/lib${LIBDIRSUFFIX}
+make install libdir=/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
-( cd $PKG/usr/man
+( cd $PKG/usr/man || exit 1
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)