aboutsummaryrefslogtreecommitdiff
path: root/system/evdi-kernel
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2018-01-02 18:44:03 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-06 06:55:22 +0700
commit82436adb8bd5db6000578e38d20a1cc1d047521e (patch)
treed13b9366575819958f3ac883afae6d00f743fe88 /system/evdi-kernel
parentb4b120e6b019f07537cf858e552e908e247290ff (diff)
system/evdi-kernel: Fix for exported ARCH variable.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
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 0772fbb1f4c81..2f1f8bc0a0ab4 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}