]> git.t-rg.ws Git - slackbuilds.git/commitdiff
amneziawg-kernel: fixed building for non-running kernels
authorfsLeg <fsleg@t-rg.ws>
Sat, 12 Jul 2025 11:23:31 +0000 (14:23 +0300)
committerfsLeg <fsleg@t-rg.ws>
Sat, 12 Jul 2025 11:23:31 +0000 (14:23 +0300)
amneziawg-kernel/amneziawg-kernel.SlackBuild

index 828885f4afb9961e1c016e0e50d2996d0af9f297..0691c8483631a2047ab7a3514d4664e9a0be6e30 100644 (file)
@@ -47,7 +47,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
 
@@ -88,6 +88,7 @@ ln -s $(readlink -f $KERNELSRCDIR) kernel
 
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
+KERNELRELEASE=$KERNEL \
 make
 install -Dm644 -t $PKG/lib/modules/$KERNEL/extra amneziawg.ko
 cd ..