wok-tiny view 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 source
1 # SliTaz package receipt.
3 PACKAGE="bootlife"
4 VERSION="1.0"
5 CATEGORY="games"
6 SHORT_DESC="Bootable Conway's life game in a 512-byte boot sector."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://www.slitaz.org"
10 TARGET="i486"
12 BUILD_DEPENDS="nasm"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mkdir -p $src
18 nasm -o $src/life.com -l $src/life.lst $stuff/life.asm
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/boot
25 cp $src/life.com $fs/boot/life
26 }
28 # Post install/remove commands for Tazpkg.
29 post_install()
30 {
31 grep -qs ^bootlife $1/boot/bootmenu ||
32 echo "life Life,life Conway's life game (may run under DOS if renamed to life.com)" >> $1/boot/bootmenu
33 }