aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-legacy340-driver
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-12-19 20:40:13 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-12-23 10:11:52 +0700
commit14709220f6473df533f6c37d99ef85ca0f382237 (patch)
tree9d2cb33ebca7875105cdf814503fe00fac833a07 /system/nvidia-legacy340-driver
parent1bcff309d4a5263812fa2a3768906a46e0e4c854 (diff)
system/nvidia-legacy340-driver: Fix package ARCH on x86.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-legacy340-driver')
-rw-r--r--system/nvidia-legacy340-driver/nvidia-legacy340-driver.SlackBuild26
1 files changed, 13 insertions, 13 deletions
diff --git a/system/nvidia-legacy340-driver/nvidia-legacy340-driver.SlackBuild b/system/nvidia-legacy340-driver/nvidia-legacy340-driver.SlackBuild
index 94e325828d76a..2c913e30a80aa 100644
--- a/system/nvidia-legacy340-driver/nvidia-legacy340-driver.SlackBuild
+++ b/system/nvidia-legacy340-driver/nvidia-legacy340-driver.SlackBuild
@@ -20,6 +20,18 @@ 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-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
TARGET="x86"
@@ -39,18 +51,6 @@ else
LIBDIRSUFFIX=""
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-$TARGET-$BUILD$TAG.$PKGTYPE"
- exit 0
-fi
-
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
SRCNAM=NVIDIA-Linux-$TARGET-${VERSION}
set -e
@@ -285,4 +285,4 @@ sed "s/PKGVERSION/$VERSION/g" $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$TARGET-$BUILD$TAG.$PKGTYPE
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE