aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-legacy96-driver/nvidia-legacy96-driver.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-04-07 23:47:29 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-15 10:24:54 +0200
commit3be5d4f283154596018ba49ba9ba5722cd44dc86 (patch)
tree6e50ec56a9b962a9fca92a369c8d3c46b134fc23 /system/nvidia-legacy96-driver/nvidia-legacy96-driver.SlackBuild
parentca20cc853579ab781f0ebe0775bad101f26089af (diff)
system/nvidia-legacy96-driver: Updated for version 96.43.16.
Diffstat (limited to 'system/nvidia-legacy96-driver/nvidia-legacy96-driver.SlackBuild')
-rw-r--r--system/nvidia-legacy96-driver/nvidia-legacy96-driver.SlackBuild27
1 files changed, 22 insertions, 5 deletions
diff --git a/system/nvidia-legacy96-driver/nvidia-legacy96-driver.SlackBuild b/system/nvidia-legacy96-driver/nvidia-legacy96-driver.SlackBuild
index a6894267670c..10c7ff4a41ff 100644
--- a/system/nvidia-legacy96-driver/nvidia-legacy96-driver.SlackBuild
+++ b/system/nvidia-legacy96-driver/nvidia-legacy96-driver.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for nvidia-legacy96-driver
-# Copyright 2008-2009 Heinz Wiesinger, Amsterdam, The Netherlands
+# Copyright 2008-2010 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=nvidia-legacy96-driver
-VERSION=96.43.14
+VERSION=96.43.16
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -62,6 +62,8 @@ mkdir -p $PKG/usr/{bin,share,lib$LIBDIRSUFFIX,sbin} $PKG/usr/include/GL \
# Start with the libraries
cd usr/lib
+ #remove duplicate libnvidia-tls
+ rm libnvidia-tls.so.$VERSION
cp -a * $PKG/usr/lib$LIBDIRSUFFIX
#Rename those files which would overwrite xorg's original files
for i in libGL.so.$VERSION libGLcore.so.$VERSION; do
@@ -104,6 +106,22 @@ cd usr/share
cp -a man* $PKG/usr/
cd -
+# symlinks
+cd $PKG/usr/lib$LIBDIRSUFFIX
+ ln -sf libnvidia-cfg.so.$VERSION libnvidia-cfg.so.1
+ ln -sf libnvidia-cfg.so.1 libnvidia-cfg.so
+ ln -sf tls/libnvidia-tls.so.$VERSION libnvidia-tls.so.1
+ ln -sf libXvMCNVIDIA.so.$VERSION libXvMCNVIDIA_dynamic.so.1
+cd -
+
+cd $PKG/usr/lib$LIBDIRSUFFIX/tls
+ ln -sf libnvidia-tls.so.$VERSION libnvidia-tls.so.1
+cd -
+
+cd $PKG/usr/lib$LIBDIRSUFFIX/xorg/modules
+ ln -sf libnvidia-wfb.so.$VERSION libnvidia-wfb.so.1
+cd -
+
# Self written bash script which I use to switch between nvidia and nv.
# It is now also used by doinst.sh to switch to the nvidia-driver right
# after installation.
@@ -127,8 +145,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
sed "s/PKGVERSION/$VERSION/g" $CWD/slack-desc > $PKG/install/slack-desc
-sed "s/PKGVERSION/$VERSION/g" $CWD/doinst.sh > $PKG/install/doinst.sh
-sed -i "s/LIBDIRSUFFIX/$LIBDIRSUFFIX/g" $PKG/install/doinst.sh
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l n -c n $OUTPUT/$PRGNAM-$VERSION-$TARGET-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$TARGET-$BUILD$TAG.${PKGTYPE:-tgz}