wok-next annotate memtest/receipt @ rev 16849

netsurf: partially undo prev.commit: add perl parser due to log
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sun Jul 13 02:17:24 2014 +0300 (2014-07-13)
parents b0e9e83532e2
children 99c5dab1a371
rev   line source
pascal@524 1 # SliTaz package receipt.
pascal@524 2
pascal@524 3 PACKAGE="memtest"
pascal@15468 4 VERSION="5.01"
pascal@524 5 CATEGORY="base-system"
pascal@524 6 SHORT_DESC="Memory failures detection tool."
pascal@524 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14798 8 LICENSE="GPL"
pascal@1734 9 SOURCE="memtest86+"
pascal@1734 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@524 11 WEB_SITE="http://www.memtest.org/"
pascal@1734 12 WGET_URL="${WEB_SITE}download/$VERSION/$TARBALL"
pascal@524 13
pascal@14798 14 BUILD_DEPENDS="xz"
pascal@13269 15
pascal@524 16 # Rules to configure and make the package.
pascal@524 17 compile_rules()
pascal@524 18 {
pascal@1734 19 cd $src
pascal@15468 20 sed -i '/scp memtest.bin/d' Makefile
pascal@1734 21 make
pascal@13269 22 cp $stuff/*.S $stuff/pack .
pascal@15188 23 for i in bootloader unpack ; do
pascal@15188 24 cc -o $i.o -Wa,-a=$i.lst -c $i.S
pascal@15188 25 objcopy -O binary $i.o $i.bin
pascal@15188 26 done
pascal@15188 27 ./pack --build bootloader.bin unpack.bin
pascal@13269 28 ./pack memtest.bin memtest.packed
pascal@14796 29 sed -i -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \
pascal@14796 30 -e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h
pascal@14796 31 make clean
pascal@14796 32 make
pascal@14796 33 ./pack memtest.bin memtest.packed-115200
pascal@524 34 }
pascal@524 35
pascal@524 36
pascal@524 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@524 38 genpkg_rules()
pascal@524 39 {
pascal@13269 40 mkdir -p $fs/boot
pascal@15188 41 cp $src/memtest.packed $fs/boot/memtest
pascal@524 42 }