summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
author Heinz Wiesinger2021-07-04 16:00:01 +0200
committer Heinz Wiesinger2021-07-17 21:55:21 +0200
commitaaa0d6603ec919958cd6a5af29c8481aef012c7b (patch)
tree2fddf4412e4933a6fc455d9fa4254c32401ea1ad /system
parentcea96c03b9389cf4ed4db04b966ac0acaff4af65 (diff)
downloadslackbuilds-aaa0d6603ec919958cd6a5af29c8481aef012c7b.tar.gz
system/steamos-xpad: Fix support for PRINT_PACKAGE_NAME
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/steamos-xpad/steamos-xpad.SlackBuild24
1 files changed, 12 insertions, 12 deletions
diff --git a/system/steamos-xpad/steamos-xpad.SlackBuild b/system/steamos-xpad/steamos-xpad.SlackBuild
index 0dddc01270..da8bd5d616 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