diff options
Diffstat (limited to 'system/nvidia-kernel/nvidia-kernel.SlackBuild')
-rw-r--r-- | system/nvidia-kernel/nvidia-kernel.SlackBuild | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/system/nvidia-kernel/nvidia-kernel.SlackBuild b/system/nvidia-kernel/nvidia-kernel.SlackBuild index 2d6a1b0709cb5..9f55b3fae8126 100644 --- a/system/nvidia-kernel/nvidia-kernel.SlackBuild +++ b/system/nvidia-kernel/nvidia-kernel.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for nvidia-kernel -# Copyright 2007-2009 Heinz Wiesinger <pprkut@liwjatan.at> +# Copyright 2007-2009 Heinz Wiesinger, Amsterdam, The Netherlands # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,8 +27,7 @@ KERNEL=${KERNEL:-$(uname -r)} KERNELPATH=${KERNELPATH:-/lib/modules/${KERNEL}/build} -VERSION=180.29 -SRCNAM=NVIDIA-Linux-x86-$VERSION-pkg0 +VERSION=190.42 PRGNAM=nvidia-kernel PKGVER=${VERSION}_$(echo $KERNEL | tr - _) @@ -36,9 +35,21 @@ ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +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) TMP=${TMP:-/tmp/SBo} -PKG=${PKG:-$TMP/package-$PKG_NAME} +PKG=${PKG:-$TMP/package-$PRGNAM} OUTPUT=${OUTPUT:-/tmp} rm -rf $PKG @@ -66,7 +77,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$PKGVER/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh +sed "s%@KERNEL@%$KERNEL%" $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$TARGET-$BUILD$TAG.${PKGTYPE:-tgz} |