summaryrefslogtreecommitdiff
path: root/system/evdi-kernel
diff options
context:
space:
mode:
Diffstat (limited to 'system/evdi-kernel')
-rw-r--r--system/evdi-kernel/evdi-kernel.SlackBuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/system/evdi-kernel/evdi-kernel.SlackBuild b/system/evdi-kernel/evdi-kernel.SlackBuild
index 0772fbb1f4..2f1f8bc0a0 100644
--- a/system/evdi-kernel/evdi-kernel.SlackBuild
+++ b/system/evdi-kernel/evdi-kernel.SlackBuild
@@ -29,6 +29,7 @@ TAG=${TAG:-_SBo}
KERNEL=${KERNEL:-$(uname -r)}
KERNELPATH=${KERNELPATH:-/lib/modules/$KERNEL/build}
+PKGVER=${VERSION}_$(echo $KERNEL | tr - _)
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -48,7 +49,7 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf evdi-$VERSION
tar xvf $CWD/evdi-$VERSION.tar.gz
cd evdi-$VERSION
chown -R root:root .
@@ -59,7 +60,7 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
pushd module
-make KERN_DIR=${KERNELPATH}
+env -u ARCH make KERN_DIR=${KERNELPATH}
popd
mkdir -p $PKG/lib/modules/$KERNEL/misc
@@ -76,4 +77,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
sed "s%@KERNEL@%$KERNEL%" $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}