wok-tiny view tfttest/receipt @ rev 172

Add x86test & tfttest
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 08 17:23:19 2021 +0000 (2021-05-08)
parents
children eb617e43dc08
line source
1 # SliTaz package receipt.
3 PACKAGE="tfttest"
4 VERSION="1.01"
5 CATEGORY="base-system"
6 SHORT_DESC="CHZ Monitor-Test is a dead pixel detection tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.slitaz.org/"
10 TARGET="i486"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 mkdir -p $src/mnt && cd $src
16 mount -o ro,loop $stuff/tfttest.img mnt
17 cp mnt/* .
18 cp $stuff/bootloader.S .
19 for i in bootloader ; do
20 cc -o $i.o -Wa,-a=$i.lst -c $i.S
21 objcopy -O binary $i.o $i.bin
22 done
23 dd if=TFTTEST.COM of=bootloader.bin bs=16 seek=6 conv=notrunc 2> /dev/null
24 umount mnt
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/boot
31 cp $src/bootloader.bin $fs/boot/$PACKAGE
32 }
34 # Post install/remove commands for Tazpkg.
35 post_install()
36 {
37 grep -qs ^tfttest $1/boot/bootmenu ||
38 echo "tfttest Tfttest,pixel,tft Check dead pixels (may run under DOS if renamed to tfttest.com)" >> $1/boot/bootmenu
39 }