From 00b66c7aa98a28600a8b1b85536c70621c217844 Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Sun, 4 Jul 2021 15:59:54 +0200 Subject: [PATCH] network/r8168: Fix support for PRINT_PACKAGE_NAME Signed-off-by: Heinz Wiesinger --- network/r8168/r8168.SlackBuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/network/r8168/r8168.SlackBuild b/network/r8168/r8168.SlackBuild index 37e8d674fc..59274c56fb 100644 --- a/network/r8168/r8168.SlackBuild +++ b/network/r8168/r8168.SlackBuild @@ -30,6 +30,9 @@ BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +KERNEL="${KERNEL:-"$(uname -r)"}" +PKGVER="$(printf %s "${VERSION}_$KERNEL" | tr - _)" + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -42,7 +45,7 @@ fi # 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-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 fi @@ -79,9 +82,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -KERNEL="${KERNEL:-"$(uname -r)"}" -PKGVER="$(printf %s "${VERSION}_$KERNEL" | tr - _)" - ( unset ARCH cd /lib/modules/$KERNEL/build