aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-12 17:45:39 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:45:39 +0200
commit397849aa20f59849f4a60570d40ab52c07abe172 (patch)
treeb3c5103c3a8f21aa608743d5afa7c4bcff7e99bd /system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.SlackBuild
parentd49c22fcfb009a87be1d614d0a60591123d9ea15 (diff)
system/nvidia-legacy173-kernel: Updated for version 173.14.18
Diffstat (limited to 'system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.SlackBuild')
-rw-r--r--system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.SlackBuild22
1 files changed, 9 insertions, 13 deletions
diff --git a/system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.SlackBuild b/system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.SlackBuild
index 95050a1b62e7..209370b10170 100644
--- a/system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.SlackBuild
+++ b/system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for nvidia-kernel
-# Copyright 2007-2008 Heinz Wiesinger <pprkut@liwjatan.at>
+# Copyright 2007-2009 Heinz Wiesinger <pprkut@liwjatan.at>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,13 +24,13 @@
# Thanks to Robby Workman for suggestions to improve this script.
-KERNELVERSION=${KERNELVERSION:-$(uname -r)}
-KERNELPATH=${KERNELPATH:-/lib/modules/${KERNELVERSION}/build}
+KERNEL=${KERNEL:-$(uname -r)}
+KERNELPATH=${KERNELPATH:-/lib/modules/${KERNEL}/build}
-VERSION=173.14.12
-NAME=NVIDIA-Linux-x86-$VERSION-pkg1
+VERSION=173.14.18
+NAME=NVIDIA-Linux-x86-$VERSION-pkg0
PKG_NAME=nvidia-legacy173-kernel
-PKG_VERS=${VERSION}_$(echo $KERNELVERSION | tr - _)
+PKG_VERS=${VERSION}_$(echo $KERNEL | tr - _)
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
@@ -52,17 +52,13 @@ chmod -R u+w,go+r-w,a-s .
cd usr/src/nv/ || exit 1
-if [ "${KERNELVERSION:0:6}" = "2.6.27" ]; then
- patch -i $CWD/NVIDIA-$VERSION-2.6.27.patch
-fi
-
make SYSSRC=$KERNELPATH module || exit 1
# It seems better as DESTDIR doesn't work here, to install the module manually.
#make SYSSRC=$KERNELPATH install DESTDIR=$PKG || exit 1
-mkdir -p $PKG/lib/modules/$KERNELVERSION/kernel/drivers/video
-install -m 0664 nvidia.ko $PKG/lib/modules/$KERNELVERSION/kernel/drivers/video/
+mkdir -p $PKG/lib/modules/$KERNEL/kernel/drivers/video
+install -m 0664 nvidia.ko $PKG/lib/modules/$KERNEL/kernel/drivers/video/
mkdir -p $PKG/usr/doc/$PKG_NAME-$PKG_VERS
cp -a README $PKG/usr/doc/$PKG_NAME-$PKG_VERS
@@ -70,7 +66,7 @@ cat $CWD/$PKG_NAME.SlackBuild > $PKG/usr/doc/$PKG_NAME-$PKG_VERS/$PKG_NAME.Slack
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/$PKG_NAME-$PKG_VERS-$ARCH-$BUILD$TAG.tgz