wok-tiny view bootris/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="bootris"
4 VERSION="slitaz"
5 CATEGORY="games"
6 GROUP="games"
7 SHORT_DESC="Bootable Tetris game in a 512-byte boot sector."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="unknown"
10 #TARBALL="tetranglix.asm"
11 WEB_SITE="https://github.com/nanochess/tetranglix"
12 #WGET_URL="https://github.com/nanochess/tetranglix/raw/faebd443deaeedf9e7ac748c56f125d36531d2d4/tetranglix.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/tetranglix.asm -o $src/tetranglix.img -l $src/tetranglix.lst
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/boot
28 cp $src/tetranglix.img $fs/boot/tetris
29 }
31 # Post install/remove commands for Tazpkg.
32 post_install()
33 {
34 grep -qs ^bootris $1/boot/bootmenu ||
35 echo "tetris Tetris,tetris Tetris (may run under DOS if renamed to tetris.com)" >> $1/boot/bootmenu
36 }