wok-tiny view memtest/receipt @ rev 168

memtest: 386 support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 30 16:35:54 2021 +0000 (2021-04-30)
parents 9f53549da10d
children aacd5b54d010
line source
1 # SliTaz package receipt.
3 PACKAGE="memtest"
4 VERSION="5.01"
5 CATEGORY="base-system"
6 SHORT_DESC="Memory failures detection tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.memtest.org/"
10 TARBALL="memtest86+-$VERSION.tar.gz"
11 WGET_URL="http://www.memtest.org/download/$VERSION/$TARBALL"
12 TARGET="i486"
14 BUILD_DEPENDS="xz"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ls $stuff/memtest*-$VERSION-*.patch &&
20 for i in $stuff/memtest*-$VERSION-*.patch ; do
21 patch -p1 < $i
22 done
23 make
24 cp $stuff/*.S $stuff/pack .
25 for i in bootloader unpack ; do
26 cc -o $i.o -Wa,-a=$i.lst -c $i.S
27 objcopy -O binary $i.o $i.bin
28 done
29 sed -i "s/VERSION/$VERSION/" pack
30 ./pack --build bootloader.bin unpack.bin
31 ./pack memtest.bin memtest.packed
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/boot
38 cp $src/memtest.packed $fs/boot/$PACKAGE
39 }
41 # Post install/remove commands for Tazpkg.
42 post_install()
43 {
44 grep -qs ^memtest $1/boot/bootmenu ||
45 echo "memtest Memtest,test,mem Check memory (may run under DOS, in real mode or with emm386, if renamed to memtest.exe)" >> $1/boot/bootmenu
46 }