system/nvidia-legacy173-kernel: Fix ordering of arch detection.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
dsomero 2010-06-06 06:18:04 -04:00
parent 5627dde27d
commit 66394ebb18
1 changed files with 16 additions and 14 deletions

View File

@ -24,25 +24,15 @@
# Thanks to Robby Workman for suggestions to improve this script. # Thanks to Robby Workman for suggestions to improve this script.
KERNEL=${KERNEL:-$(uname -r)}
KERNELPATH=${KERNELPATH:-/lib/modules/${KERNEL}/build}
VERSION=173.14.25
PRGNAM=nvidia-legacy173-kernel PRGNAM=nvidia-legacy173-kernel
PKGVER=${VERSION}_$(echo $KERNEL | tr - _) VERSION=173.14.25
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ "$ARCH" = "i486" ]; then KERNEL=${KERNEL:-$(uname -r)}
TARGET="x86" KERNELPATH=${KERNELPATH:-/lib/modules/${KERNEL}/build}
elif [ "$ARCH" = "i686" ]; then
TARGET="x86"
elif [ "$ARCH" = "x86_64" ]; then
TARGET="x86_64"
fi
SRCNAM=NVIDIA-Linux-$TARGET-$VERSION-pkg0 PKGVER=${VERSION}_$(echo $KERNEL | tr - _)
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -54,6 +44,18 @@ if [ -z "$ARCH" ]; then
esac esac
fi fi
if [ "$ARCH" = "i486" ]; then
TARGET="x86"
elif [ "$ARCH" = "i686" ]; then
TARGET="x86"
elif [ "$ARCH" = "x86_64" ]; then
TARGET="x86_64"
fi
unset ARCH
SRCNAM=NVIDIA-Linux-$TARGET-$VERSION-pkg0
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}
PKG=${PKG:-$TMP/package-$PRGNAM} PKG=${PKG:-$TMP/package-$PRGNAM}