aboutsummaryrefslogtreecommitdiff
path: root/network/r8168/r8168.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2021-07-04 15:59:54 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2021-07-17 21:55:16 +0200
commit00b66c7aa98a28600a8b1b85536c70621c217844 (patch)
treec338cd32f8f880c67cd4c594c5e22c536bfab4fc /network/r8168/r8168.SlackBuild
parent58dcfd17987f9b39529e3c4e8187275a104a0708 (diff)
network/r8168: Fix support for PRINT_PACKAGE_NAME
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'network/r8168/r8168.SlackBuild')
-rw-r--r--network/r8168/r8168.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/network/r8168/r8168.SlackBuild b/network/r8168/r8168.SlackBuild
index 37e8d674fcc6..59274c56fb24 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