system/nvidia-legacy390-kernel: Fix package ARCH.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
b567a9f61d
commit
b2522d77ab
|
@ -56,15 +56,13 @@ elif [ "$ARCH" = "x86_64" ]; then
|
||||||
TARGET="x86_64"
|
TARGET="x86_64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unset ARCH
|
|
||||||
|
|
||||||
SRCNAM=NVIDIA-Linux-$TARGET-${VERSION}
|
SRCNAM=NVIDIA-Linux-$TARGET-${VERSION}
|
||||||
|
|
||||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||||
# the name of the created package would be, and then exit. This information
|
# the name of the created package would be, and then exit. This information
|
||||||
# could be useful to other scripts.
|
# could be useful to other scripts.
|
||||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
echo "$PRGNAM-$PKGVER-$TARGET-$BUILD$TAG.$PKGTYPE"
|
echo "$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -85,7 +83,9 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
(cd kernel || exit 1
|
(
|
||||||
|
unset ARCH
|
||||||
|
cd kernel || exit 1
|
||||||
# CC=${CC:-gcc} suppresses an otherwise harmless "compiler mismatch"
|
# CC=${CC:-gcc} suppresses an otherwise harmless "compiler mismatch"
|
||||||
# message. If you custom-build your kernel with clang,
|
# message. If you custom-build your kernel with clang,
|
||||||
# then pass CC=clang to this script.
|
# then pass CC=clang to this script.
|
||||||
|
@ -116,4 +116,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
sed "s%@KERNEL@%$KERNEL%" $CWD/doinst.sh > $PKG/install/doinst.sh
|
sed "s%@KERNEL@%$KERNEL%" $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$TARGET-$BUILD$TAG.$PKGTYPE
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE
|
||||||
|
|
Loading…
Reference in New Issue