diff options
author | B. Watson <urchlay@slackware.uk> | 2023-07-06 16:59:52 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-08 16:42:09 +0700 |
commit | 078f50ab2d6a720da3c8eaebb123225e4e01aada (patch) | |
tree | 5f3b2c907a9673bfb364012969cc1a8f4b0d55a2 | |
parent | 0aa0983c5f863e5bf6ff8a35ff6f93718fa52d02 (diff) |
network/irssi-python: Fix PRINT_PACKAGE_NAME.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/irssi-python/irssi-python.SlackBuild | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/network/irssi-python/irssi-python.SlackBuild b/network/irssi-python/irssi-python.SlackBuild index 18736ede84b2..3a99498c1324 100644 --- a/network/irssi-python/irssi-python.SlackBuild +++ b/network/irssi-python/irssi-python.SlackBuild @@ -28,6 +28,19 @@ BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + PYIRSSI_VER="$( echo $VERSION | cut -d_ -f1 )" IRSSI_VER="$( echo $VERSION | cut -d_ -f2 )" @@ -44,19 +57,6 @@ EOF sleep 5 fi -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} |