wok-tiny view bootsokoban/receipt @ rev 187

Add bootlife (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 04 18:58:39 2024 +0000 (3 months ago)
parents bbb34fe4904d
children
line source
1 # SliTaz package receipt.
3 PACKAGE="bootsokoban"
4 VERSION="slitaz"
5 CATEGORY="games"
6 GROUP="games"
7 SHORT_DESC="Bootable sokoban game in a 512-byte boot sector."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="unknown"
10 #TARBALL="sokoban.asm"
11 WEB_SITE="https://ish.works/bootsector/bootsector.html"
12 #WGET_URL="https://ish.works/bootsector/sokoban.asm"
13 TARGET="i486"
15 BUILD_DEPENDS="nasm"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mkdir -p $src
21 nasm -f bin $stuff/sokoban.asm -o $src/sokoban.img -l $src/sokoban.lst
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/boot
28 cp $src/sokoban.img $fs/boot/sokoban
29 }
31 # Post install/remove commands for Tazpkg.
32 post_install()
33 {
34 grep -qs ^bootsokoban $1/boot/bootmenu ||
35 echo "sokoban Sokoban,sokoban Sokoban (may run under DOS if renamed to sokoban.com)" >> $1/boot/bootmenu
36 }