diff options
author | B. Watson <urchlay@slackware.uk> | 2023-02-14 01:48:13 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-02-18 10:07:02 +0700 |
commit | cf18c253f89a7ef39598a4a3effc6f5c87194f06 (patch) | |
tree | 66227978e0b683c16139847f2a2e8fbcc01fcbe0 /multimedia | |
parent | b237a866f5a23594417e057e37be396d6226148e (diff) |
multimedia/huludesktop: Fix PRINT_PACKAGE_NAME.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/huludesktop/huludesktop.SlackBuild | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/multimedia/huludesktop/huludesktop.SlackBuild b/multimedia/huludesktop/huludesktop.SlackBuild index ccf89cec14806..65af8535d68c9 100644 --- a/multimedia/huludesktop/huludesktop.SlackBuild +++ b/multimedia/huludesktop/huludesktop.SlackBuild @@ -33,14 +33,6 @@ PKGTYPE=${PKGTYPE:-tgz} REAL_VER=$(ar p ${PRGNAM}_${DEBARCH}.deb control.tar.gz | tar zxO ./control \ | grep Version | awk '{print $2}' | cut -d- -f1) -# 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-$REAL_VER-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -51,6 +43,11 @@ case "$(uname -m)" in *) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;; esac +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$REAL_VER-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + set -eu rm -rf $PKG |