diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2021-07-04 16:00:01 +0200 |
---|---|---|
committer | Heinz Wiesinger <pprkut@slackbuilds.org> | 2021-07-17 21:55:21 +0200 |
commit | aaa0d6603ec919958cd6a5af29c8481aef012c7b (patch) | |
tree | 2fddf4412e4933a6fc455d9fa4254c32401ea1ad /system/steamos-xpad | |
parent | cea96c03b9389cf4ed4db04b966ac0acaff4af65 (diff) |
system/steamos-xpad: Fix support for PRINT_PACKAGE_NAME
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'system/steamos-xpad')
-rw-r--r-- | system/steamos-xpad/steamos-xpad.SlackBuild | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/system/steamos-xpad/steamos-xpad.SlackBuild b/system/steamos-xpad/steamos-xpad.SlackBuild index 0dddc01270772..da8bd5d616b7e 100644 --- a/system/steamos-xpad/steamos-xpad.SlackBuild +++ b/system/steamos-xpad/steamos-xpad.SlackBuild @@ -30,18 +30,6 @@ BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -# 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" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - KERNEL=$(uname -r) PKGVER=${VERSION}_$(echo $KERNEL | tr - _) @@ -53,6 +41,18 @@ if [ -z "$ARCH" ]; then esac fi +# 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-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + set -ue rm -rf $PKG |