diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2021-07-04 15:59:52 +0200 |
---|---|---|
committer | Heinz Wiesinger <pprkut@slackbuilds.org> | 2021-07-17 21:55:15 +0200 |
commit | d789fd074547056f6f9061ad2636be4b63aec2ec (patch) | |
tree | fc2c323deae20758b2f2d330b14f9b183d96639f /multimedia/huludesktop | |
parent | c97816b7b2c51e61a2782cbeb6473149ad9db2de (diff) |
multimedia/huludesktop: Fix support for PRINT_PACKAGE_NAME
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'multimedia/huludesktop')
-rw-r--r-- | multimedia/huludesktop/huludesktop.SlackBuild | 8 |
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 |