wok-tiny view bootmine/receipt @ rev 187

Add bootlife (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 04 18:58:39 2024 +0000 (4 months ago)
parents bbb34fe4904d
children
line source
1 # SliTaz package receipt.
3 PACKAGE="bootmine"
4 VERSION="1.1.1-slitaz"
5 CATEGORY="games"
6 GROUP="games"
7 SHORT_DESC="Bootable minesweeper game in a 512-byte boot sector."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://github.com/io12/BootMine"
11 #TARBALL="$PACKAGE-$VERSION.tar.gz"
12 #WGET_URL="https://github.com/io12/BootMine/archive/refs/tags/$VERSION.tar.gz"
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 -o $src/mine.com -l $src/mine.lst $stuff/mine.asm
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/boot
28 cp $src/mine.com $fs/boot/mine
29 }
31 # Post install/remove commands for Tazpkg.
32 post_install()
33 {
34 grep -qs ^bootmine $1/boot/bootmenu ||
35 echo "mine Mine,mine Mine sweeper (may run under DOS if renamed to mine.com)" >> $1/boot/bootmenu
36 }