diff options
author | Lenard Spencer <lenardrspencer@gmail.com> | 2021-01-29 01:51:31 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-01-30 10:29:14 +0700 |
commit | 0f58f8644bb3d225db6a26306ff7d1f12edd3501 (patch) | |
tree | 3385fed5d31861e08ac7b4538365924719420350 /system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild | |
parent | 000fed4fd23731dbb842976794f3b7cb0853da0f (diff) |
system/nvidia-legacy390-driver: Build fix.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild')
-rw-r--r-- | system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild b/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild index f349baed78759..b984a3258053b 100644 --- a/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild +++ b/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild @@ -108,9 +108,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Compiling the various open source apps instead of using the precompiled binaries # Compiling nvidia-installer from source -cd $TMP/nvidia-installer-$VERSION +if [ "$CURRENT" = "no" ]; then + cd $TMP/nvidia-installer-$VERSION # Let's try to remove the conflicting files and GPU detection patch -p0 < $CWD/skip_conflict-GPU_detect.patch @@ -127,12 +127,13 @@ cd $TMP/nvidia-installer-$VERSION install -m 755 _out/Linux_$TARGET/nvidia-installer $PKG/usr/bin/ install -m 644 _out/Linux_$TARGET/nvidia-installer.1.gz $PKG/usr/man/man1/ -cd - + cd - # Now we need to copy the newly patched and compiled nvidia-installer # to the driver source tree for use -mv -f $PKG/usr/bin/nvidia-installer $TMP/$SRCNAM -mv -f $PKG/usr/man/man1/nvidia-installer.1.gz $TMP/$SRCNAM + mv -f $PKG/usr/bin/nvidia-installer $TMP/$SRCNAM + mv -f $PKG/usr/man/man1/nvidia-installer.1.gz $TMP/$SRCNAM +fi if [ "$ARCH" = "x86_64" -a "${COMPAT32}" = "yes" ]; then COMP32="--install-compat32-libs --compat32-prefix=$PKG/usr" |