wok-next view memtest/receipt @ rev 19769
Update Perl XS modules that need perl-dev to build (unlike Pure Perl), rebuild all module packages as Perl version change.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 14 09:51:23 2017 +0300 (2017-06-14) |
parents | d726d0daa9a7 |
children | 59b28731c360 |
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/"
11 SOURCE="memtest86+"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}download/$VERSION/$TARBALL"
15 BUILD_DEPENDS="xz"
16 SPLIT="memtest-serial"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i -e '/scp memtest.bin/d' \
22 -e 's/no-stack-protector/& -fgnu89-inline/' Makefile
23 patch -p1 < $stuff/$SOURCE-$VERSION-array-size.patch
24 make
25 cp $stuff/*.S $stuff/pack .
26 for i in bootloader unpack ; do
27 cc -o $i.o -Wa,-a=$i.lst -c $i.S
28 objcopy -O binary $i.o $i.bin
29 done
30 sed -i "s/VERSION/$VERSION/" pack
31 ./pack --build bootloader.bin unpack.bin
32 ./pack memtest.bin memtest.packed
33 mv memtest.bin memtest.bin.console
34 sed -i -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \
35 -e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h
36 make clean
37 make
38 ./pack memtest.bin memtest.packed-115200
39 mv memtest.bin memtest.bin.serial
40 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/boot
47 cp $src/memtest.packed $fs/boot/memtest
48 }