diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2021-07-04 16:00:00 +0200 |
---|---|---|
committer | Heinz Wiesinger <pprkut@slackbuilds.org> | 2021-07-17 21:55:20 +0200 |
commit | bb38c2a02ec1587ac7771ce34a4871c16a8639c4 (patch) | |
tree | 12c01f130960d51d6dcac84f9b83e32bc3420656 /system/nvidia-legacy340-driver | |
parent | e1e6bd1303f73c02775ed12a11a16553bfd4bc07 (diff) |
system/nvidia-legacy340-driver: Fix support for PRINT_PACKAGE_NAME
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'system/nvidia-legacy340-driver')
-rw-r--r-- | system/nvidia-legacy340-driver/nvidia-legacy340-driver.SlackBuild | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/system/nvidia-legacy340-driver/nvidia-legacy340-driver.SlackBuild b/system/nvidia-legacy340-driver/nvidia-legacy340-driver.SlackBuild index 3d4415dd725b..94e325828d76 100644 --- a/system/nvidia-legacy340-driver/nvidia-legacy340-driver.SlackBuild +++ b/system/nvidia-legacy340-driver/nvidia-legacy340-driver.SlackBuild @@ -20,18 +20,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-$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" @@ -51,6 +39,18 @@ 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 |