diff options
Diffstat (limited to 'system/memtest86/memtest86.SlackBuild')
-rw-r--r-- | system/memtest86/memtest86.SlackBuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/system/memtest86/memtest86.SlackBuild b/system/memtest86/memtest86.SlackBuild index 62f991c21abac..1e8e9e469562c 100644 --- a/system/memtest86/memtest86.SlackBuild +++ b/system/memtest86/memtest86.SlackBuild @@ -26,16 +26,18 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=memtest86 VERSION=${VERSION:-4.3.7} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} # i486 only. Modify the Makefile at your own risk :-) -ARCH=i486 +ARCH=${ARCH:-$(uname -m)} +case $ARCH in + i?86) ARCH=i486 ;; + x86_64) ARCH=i486 ;; + *) echo "$ARCH is not supported." >&2; exit 1 ;; +esac -# 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 -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -94,12 +96,15 @@ install -D -m 0644 memtest.bin $PKG/boot/$PRGNAM-$VERSION.bin ln -s $PRGNAM-$VERSION $PKG/boot/$PRGNAM ln -s $PRGNAM-$VERSION.bin $PKG/boot/$PRGNAM.bin +install -D -m 0755 $CWD/20_memtest86 $PKG/etc/grub.d/20_memtest86.new + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |