summaryrefslogtreecommitdiff
path: root/network/broadcom-sta/broadcom-sta.SlackBuild
diff options
context:
space:
mode:
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 .