aboutsummaryrefslogtreecommitdiff
path: root/multimedia/huludesktop
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/huludesktop')
-rw-r--r--multimedia/huludesktop/huludesktop.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/multimedia/huludesktop/huludesktop.SlackBuild b/multimedia/huludesktop/huludesktop.SlackBuild
index cb138875c9196..ccf89cec14806 100644
--- a/multimedia/huludesktop/huludesktop.SlackBuild
+++ b/multimedia/huludesktop/huludesktop.SlackBuild
@@ -30,11 +30,14 @@ BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
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-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ echo "$PRGNAM-$REAL_VER-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
@@ -50,9 +53,6 @@ esac
set -eu
-REAL_VER=$(ar p ${PRGNAM}_${DEBARCH}.deb control.tar.gz | tar zxO ./control \
- | grep Version | awk '{print $2}' | cut -d- -f1)
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG