system/nvidia-driver: fix a few typos and broken symlinks

Thanks to Das.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Edward Koenig 2012-09-25 23:07:57 -05:00 committed by Robby Workman
parent 230b2afb70
commit 4974e21134

View file

@ -37,13 +37,15 @@
# 1.9 02-AUG-2012 version bmp, fixes, updates, nvidia-switch for install/uninstall only
# 1.9a 21-AUG-2012 fix for libvdpau (per post on mail list) --rworkman
# 1.9b 10-SEP-2012 fix glx.h missing extension (per email, list and LQ)
# 1.9c 25-SEP-2012 fix symlinks (thanks to Das via email)
PRGNAM=nvidia-driver
VERSION=302.17
MVERS=302
BUILD=${BUILD:-3}
VERSION=${VERSION:-302.17}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
MVERS=$(printf $VERSION | cut -d. -f1)
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@ -110,7 +112,7 @@ install -m 444 libXvMCNVIDIA.a $PKG/usr/lib$LIBDIRSUFFIX/
install -m 755 libXvMCNVIDIA.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/
install -m 755 libcuda.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/
install -m 755 libnvidia-glcore.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/
install -m 755 libnvidia-wfb.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/xorg/modules/
install -m 755 libnvidia-wfb.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/xorg/modules/libnvidia-wfb.so.$VERSION-nvidia
install -m 755 libnvidia-cfg.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/
install -m 755 libnvidia-ml.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/
install -m 755 libnvcuvid.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/
@ -150,14 +152,10 @@ cd $PKG/usr/lib$LIBDIRSUFFIX
ln -sf libOpenCL.so.1.0 libOpenCL.so.1
ln -sf libOpenCL.so.1 libOpenCL.so
ln -sf libnvcuvid.so.$VERSION libnvcuvid.so.1
ln -sf libnvcuvidv.so.$VERSION libnvcuvid.so
ln -sf libnvcuvid.so.$VERSION libnvcuvid.so
ln -sf tls/libnvidia-tls.so.$VERSION libnvidia-tls.so.$VERSION
cd -
cd $PKG/usr/lib$LIBDIRSUFFIX/xorg/modules
ln -sf libnvidia-wfb.so.$VERSION libnvidia-wfb.so
cd -
# symlinks for optional 32-bit support
if [ "$ARCH" = "x86_64" -a "${COMPAT32}" = "yes" ]; then
cd $PKG/usr/lib