diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2018-01-02 18:44:03 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-01-06 06:55:22 +0700 |
commit | 82436adb8bd5db6000578e38d20a1cc1d047521e (patch) | |
tree | d13b9366575819958f3ac883afae6d00f743fe88 /system/evdi-kernel/evdi-kernel.SlackBuild | |
parent | b4b120e6b019f07537cf858e552e908e247290ff (diff) |
system/evdi-kernel: Fix for exported ARCH variable.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/evdi-kernel/evdi-kernel.SlackBuild')
-rw-r--r-- | system/evdi-kernel/evdi-kernel.SlackBuild | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/system/evdi-kernel/evdi-kernel.SlackBuild b/system/evdi-kernel/evdi-kernel.SlackBuild index 0772fbb1f4c8..2f1f8bc0a0ab 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} |