diff options
author | B. Watson <urchlay@slackware.uk> | 2023-02-14 02:54:43 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-02-18 10:07:11 +0700 |
commit | 4b4af400761a65862d7442c95a6bf603bc84c537 (patch) | |
tree | 14292d700ccc6d11767b82a72e18497c5eb8aed1 /system | |
parent | 738eed21d5d5d7ced26e970e119525364e051f6a (diff) |
system/vhba-module: Align with template.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/vhba-module/vhba-module.SlackBuild | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/system/vhba-module/vhba-module.SlackBuild b/system/vhba-module/vhba-module.SlackBuild index 002d405a4172..42431011aaeb 100644 --- a/system/vhba-module/vhba-module.SlackBuild +++ b/system/vhba-module/vhba-module.SlackBuild @@ -32,20 +32,19 @@ BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -# Setting ARCH is not supported (and the build crashes if ARCH is exported). -unset ARCH case "$( uname -m )" in - i?86) SLKARCH=i586 ;; - arm*) SLKARCH=arm ;; - *) SLKARCH=$( uname -m ) ;; + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; esac +# Setting ARCH is not supported (and the build crashes if ARCH is exported). +SLKARCH="$ARCH" +unset ARCH + KERNEL=${KERNEL:-$(uname -r)} PKGKERNEL=$(echo $KERNEL | tr - _) -# 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}_${PKGKERNEL}-$SLKARCH-$BUILD$TAG.$PKGTYPE" exit 0 |