wok annotate BootProg/receipt @ rev 25122

Up apache (2.4.54)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 28 08:48:09 2022 +0000 (2022-06-28)
parents b9659e3c2111
children 78727b04c002
rev   line source
pascal@24476 1 # SliTaz package receipt.
pascal@24476 2
pascal@24476 3 PACKAGE="BootProg"
pascal@24476 4 VERSION="slitaz"
pascal@24476 5 CATEGORY="base-system"
pascal@24476 6 SHORT_DESC="FAT12/16/32 Bootsector for .COMs/.EXEs"
pascal@24476 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@24476 8 LICENSE="MIT"
pascal@24476 9 WEB_SITE="https://wiki.osdev.org/BootProg"
pascal@24476 10
pascal@24942 11 BUILD_DEPENDS="nasm lzma"
pascal@24476 12
pascal@24476 13 # Rules to configure and make the package.
pascal@24476 14 compile_rules()
pascal@24476 15 {
pascal@24479 16 mkdir -p $src && cd $src
pascal@24942 17 sed '1,/^exit 1/!d' $stuff/bootprog.sh > bootprog
pascal@24942 18 for i in boot16 boot32 bootex ; do
pascal@24479 19 cp $stuff/$i.asm .
pascal@24942 20 nasm $i.asm -f bin -o $i.bin -l $i.lst && cat $i.bin
pascal@24942 21 done | lzma -9 >> bootprog
pascal@24476 22 chmod +x bootprog
pascal@24476 23 }
pascal@24476 24
pascal@24476 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@24476 26 genpkg_rules()
pascal@24476 27 {
pascal@24476 28 mkdir -p $fs/usr/bin
pascal@24476 29 cp -a $src/bootprog $fs/usr/bin
pascal@24476 30 }