# SliTaz package receipt. PACKED_SIZE="16.0K" UNPACKED_SIZE="24.0K" PACKAGE="tfttest" VERSION="1.01" CATEGORY="base-system" SHORT_DESC="CHZ Monitor-Test is a dead pixel detection tool." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="http://www.slitaz.org/" TARGET="i486" # Rules to configure and make the package. compile_rules() { mkdir -p $src/mnt && cd $src mount -o ro,loop $stuff/tfttest.img mnt cp mnt/* . cp $stuff/bootloader.S . for i in bootloader ; do cc -o $i.o -Wa,-a=$i.lst -c $i.S objcopy -O binary $i.o $i.bin done dd if=TFTTEST.COM of=bootloader.bin bs=16 seek=9 conv=notrunc 2> /dev/null umount mnt } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/boot cp $src/bootloader.bin $fs/boot/$PACKAGE } # Post install/remove commands for Tazpkg. post_install() { grep -qs ^tfttest $1/boot/bootmenu || echo "tfttest Tfttest,pixel,tft Check pixels" >> $1/boot/bootmenu }