diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-20 14:53:16 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-21 01:49:23 -0500 |
commit | 156912a64a5003eaf13858ac7a280d346e9eac62 (patch) | |
tree | 1c7a2194a6380c55f50507e91f29850a39f71653 /network/ndiswrapper/ndiswrapper.SlackBuild | |
parent | c22175e50052e705e3dd7ce50838457639f44a1b (diff) | |
download | slackbuilds-156912a64a5003eaf13858ac7a280d346e9eac62.tar.gz |
network/ndiswrapper: Miscellaneous cleanups.
Diffstat (limited to 'network/ndiswrapper/ndiswrapper.SlackBuild')
-rw-r--r-- | network/ndiswrapper/ndiswrapper.SlackBuild | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/network/ndiswrapper/ndiswrapper.SlackBuild b/network/ndiswrapper/ndiswrapper.SlackBuild index 97e0cade79..902a9b743e 100644 --- a/network/ndiswrapper/ndiswrapper.SlackBuild +++ b/network/ndiswrapper/ndiswrapper.SlackBuild @@ -26,10 +26,19 @@ PRGNAM=ndiswrapper VERSION=${VERSION:-1.56} -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -46,6 +55,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e @@ -71,10 +83,7 @@ make install KVERS=$KERNEL DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( 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 -) +find $PKG/usr/man -type f -exec gzip -9 {} \; # Clean up a few things rm $PKG/lib/modules/*/modules.* |