diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2021-07-04 15:59:55 +0200 |
---|---|---|
committer | Heinz Wiesinger <pprkut@slackbuilds.org> | 2021-07-17 21:55:17 +0200 |
commit | da5c38f5a6520eca6f62bfbaa038d3db6d202966 (patch) | |
tree | 7914c3cdb89cfaefd606143aacbd88738a2b7dab /network | |
parent | bb0b46083c088473635ddbbde107061e60823c35 (diff) |
network/viber: Fix support for PRINT_PACKAGE_NAME
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'network')
-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 99f74f089ac76..7849b8b91b3aa 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 |