wok-tiny view tfttest/receipt @ rev 173

Fix ctorrent-dnh & tfttest
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 14 09:04:04 2021 +0000 (2021-07-14)
parents 8da769e5f6c3
children 1e55ea7da8de
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=9 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 pixels" >> $1/boot/bootmenu
39 }