wok-tiny annotate bootpillman/receipt @ rev 187

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