# SliTaz package receipt.

PACKED_SIZE="16.0K"
UNPACKED_SIZE="24.0K"
PACKAGE="bootsokoban"
VERSION="slitaz"
CATEGORY="games"
SHORT_DESC="Bootable sokoban game in a 512-byte boot sector."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="unknown"
#TARBALL="sokoban.asm"
WEB_SITE="https://ish.works/bootsector/bootsector.html"
#WGET_URL="https://ish.works/bootsector/sokoban.asm"
TARGET="i486"

BUILD_DEPENDS="nasm"

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

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

# Post install/remove commands for Tazpkg.
post_install()
{
	grep -qs ^bootsokoban $1/boot/bootmenu ||
	echo "sokoban	Sokoban,sokoban		Sokoban (may run under DOS if renamed to sokoban.com)" >> $1/boot/bootmenu
}
