diff options
author | Lenard Spencer <lenardrspencer@gmail.com> | 2022-05-28 01:39:05 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-28 09:11:40 +0700 |
commit | 8a4dcb0f45cc3b6d5b45f6fd3fe7743865e03bab (patch) | |
tree | 3084cc4d59ef26e09cc58bdaae38cab3b40df6a3 /system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild | |
parent | 5b7a1ef305bc9535ae43087cf33a4690f907c2cf (diff) |
system/nvidia-legacy390-driver: Updated for version 390.151.
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 | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild b/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild index 8203f2c67437c..1b4c1aee21d50 100644 --- a/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild +++ b/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=nvidia-legacy390-driver -VERSION=${VERSION:-390.147} +VERSION=${VERSION:-390.151} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -41,14 +41,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION$MULTI-$TARGET-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -75,6 +67,20 @@ else COMPAT32=no fi +if [ "$COMPAT32" = "yes" ]; then + MULTI="_multilib" +else + MULTI="" +fi + +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION$MULTI-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + # Abort if an Nvidia driver is still installed: if [ -x /usr/bin/nvidia-installer ]; then echo -e "\n A previous Nvidia installation has been detected!" @@ -114,6 +120,10 @@ 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 {} \; +# If you are building in a 32-bit chroot on 64-bit, +# this is now necessary or the utilities will not build: +export TARGET_ARCH=$TARGET + # Compiling the various open source apps instead of using the precompiled binaries # Compiling nvidia-installer from source cd $TMP/nvidia-installer-$VERSION @@ -145,7 +155,6 @@ mv -f $PKG/usr/man/man1/nvidia-installer.1.gz $TMP/$SRCNAM if [ "$ARCH" = "x86_64" -a "${COMPAT32}" = "yes" ]; then COMP32="--install-compat32-libs --compat32-prefix=$PKG/usr" - MULTI="_multilib" mkdir $PKG/usr/lib else if [ ! "$ARCH" = "x86_64" ]; then @@ -355,4 +364,4 @@ fi # Flag multlib as needed and build package. cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION$MULTI-$TARGET-$BUILD$TAG.$PKGTYPE +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION$MULTI-$ARCH-$BUILD$TAG.$PKGTYPE |