summaryrefslogtreecommitdiff
path: root/network/broadcom-sta/broadcom-sta.SlackBuild
diff options
context:
space:
mode:
authorDavid Matthew Jerry Koenig <koenigdavidmj@gmail.com>2011-01-11 12:04:30 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-01-11 12:04:30 -0600
commita2482f799fffd1c2735ff16ba5f0a4c66ff1f67f (patch)
treedd1f0ba6269de2cb743b680c01d371d9cc8f4173 /network/broadcom-sta/broadcom-sta.SlackBuild
parent7896dddaaeb96dd9b761d7a6f36de9f1940537d4 (diff)
downloadslackbuilds-a2482f799fffd1c2735ff16ba5f0a4c66ff1f67f.tar.gz
network/broadcom-sta: Updated for version 5.100.82.38.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/broadcom-sta/broadcom-sta.SlackBuild')
-rw-r--r--network/broadcom-sta/broadcom-sta.SlackBuild28
1 files changed, 12 insertions, 16 deletions
diff --git a/network/broadcom-sta/broadcom-sta.SlackBuild b/network/broadcom-sta/broadcom-sta.SlackBuild
index ebd229032a..f9fc7e57d9 100644
--- a/network/broadcom-sta/broadcom-sta.SlackBuild
+++ b/network/broadcom-sta/broadcom-sta.SlackBuild
@@ -4,36 +4,32 @@
# Public domain.
PRGNAM=broadcom-sta
-VERSION=5.60.246.2
+VERSION=5.100.82.38
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
KERNEL=${KERNEL:-$(uname -r)}
-
PKG_VERSION=${VERSION}_$(echo $KERNEL | tr - _)
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i486 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
-fi
+case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+esac
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-WORKDIR=$TMP/build-$PRGNAM
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+WORKDIR=$TMP/build-$PRGNAM
+
# Skipped the usual set of variables since they don't apply here
# (libdir isn't needed, and custom CFLAGS aren't wanted).
if [ "$ARCH" = "i486" ]; then
- MY_ARCH="x86-32"
-elif [ "$ARCH" = "i686" ]; then
- MY_ARCH="x86-32"
+ MY_ARCH="x86_32"
elif [ "$ARCH" = "x86_64" ]; then
- MY_ARCH="x86-64"
+ MY_ARCH="x86_64"
else
printf "\n\n$ARCH is not supported...\n"
exit 1
@@ -44,7 +40,7 @@ set -e
rm -rf $WORKDIR $PKG
mkdir -p $TMP $WORKDIR $PKG $OUTPUT
cd $WORKDIR
-tar xvf $CWD/hybrid-portsrc_${MY_ARCH}_v${VERSION}.tar.gz
+tar xvf $CWD/hybrid-portsrc_${MY_ARCH}-v$(printf $VERSION|tr . _).tar.gz
# Build the module
make -C /lib/modules/$KERNEL/build M=$WORKDIR clean
@@ -60,7 +56,7 @@ cat $WORKDIR/lib/LICENSE.txt > $PKG/usr/doc/$PRGNAM-$VERSION/LICENSE.txt
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-sed "s%@KERNEL@%$KERNEL%" $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
chown -R root:root .