# SliTaz package receipt.

PACKED_SIZE="16.0K"
UNPACKED_SIZE="24.0K"
PACKAGE="bootlife"
VERSION="1.0"
CATEGORY="games"
SHORT_DESC="Bootable Conway's life game in a 512-byte boot sector."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="MIT"
WEB_SITE="http://www.slitaz.org"
TARGET="i486"

BUILD_DEPENDS="nasm"

# Rules to configure and make the package.
compile_rules()
{
	mkdir -p $src
	nasm -o $src/life.com -l $src/life.lst $stuff/life.asm
} 

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/boot
	cp $src/life.com $fs/boot/life
}

# Post install/remove commands for Tazpkg.
post_install()
{
	grep -qs ^bootlife $1/boot/bootmenu ||
	echo "life	Life,life		Conway's life game (may run under DOS if renamed to life.com)" >> $1/boot/bootmenu
}
