aboutsummaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/huludesktop/huludesktop.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/multimedia/huludesktop/huludesktop.SlackBuild b/multimedia/huludesktop/huludesktop.SlackBuild
index ccf89cec1480..65af8535d68c 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