wok-tiny view bootsokoban/receipt @ rev 182

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