wok-tiny diff bootlife/receipt @ rev 186

Add bootlife
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 04 18:02:38 2024 +0000 (3 months ago)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/bootlife/receipt	Sun Feb 04 18:02:38 2024 +0000
     1.3 @@ -0,0 +1,33 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="bootlife"
     1.7 +VERSION="1.0"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="Bootable Conway's life game in a 512-byte boot sector."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="MIT"
    1.12 +WEB_SITE="http://www.slitaz.org"
    1.13 +TARGET="i486"
    1.14 +
    1.15 +BUILD_DEPENDS="nasm"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	mkdir -p $src
    1.21 +	nasm -o $src/life.com -l $src/life.lst $stuff/life.asm
    1.22 +} 
    1.23 +
    1.24 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.25 +genpkg_rules()
    1.26 +{
    1.27 +	mkdir -p $fs/boot
    1.28 +	cp $src/life.com $fs/boot/life
    1.29 +}
    1.30 +
    1.31 +# Post install/remove commands for Tazpkg.
    1.32 +post_install()
    1.33 +{
    1.34 +	grep -qs ^bootlife $1/boot/bootmenu ||
    1.35 +	echo "life	Life,life		Conway's life game (may run under DOS if renamed to life.com)" >> $1/boot/bootmenu
    1.36 +}