diff options
author | B. Watson <urchlay@slackware.uk> | 2023-02-14 01:45:54 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-02-18 10:07:01 +0700 |
commit | 85e498c4396a652363d4c62511376fcaae00fb67 (patch) | |
tree | 3adf598841e63d1a388ea588ba60f40415247f88 | |
parent | 33cd2c90dff4dcb31405acb87f50cfc278e8b3f4 (diff) |
games/gnonograms: Fix PRINT_PACKAGE_NAME.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | games/gnonograms/gnonograms.SlackBuild | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/games/gnonograms/gnonograms.SlackBuild b/games/gnonograms/gnonograms.SlackBuild index b66602ab85a6a..4048c10cd8110 100644 --- a/games/gnonograms/gnonograms.SlackBuild +++ b/games/gnonograms/gnonograms.SlackBuild @@ -31,14 +31,6 @@ BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -# 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} @@ -51,6 +43,11 @@ if [ -z "$ARCH" ]; then esac fi +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" |