diff options
-rw-r--r-- | network/viber/viber.SlackBuild | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/network/viber/viber.SlackBuild b/network/viber/viber.SlackBuild index 99f74f089a..7849b8b91b 100644 --- a/network/viber/viber.SlackBuild +++ b/network/viber/viber.SlackBuild @@ -36,11 +36,14 @@ case "$(uname -m)" in *) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;; esac +# Get the real version +REAL_VER=$(ar p ${PRGNAM}.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 @@ OUTPUT=${OUTPUT:-/tmp} set -eu -# Get the real version -REAL_VER=$(ar p ${PRGNAM}.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 |