wok-6.x view BootProg/receipt @ rev 24920

updated mp (5.2.10 -> 5.58)
author Hans-G?nter Theisgen
date Sun Apr 10 07:48:27 2022 +0100 (2022-04-10)
parents d77ab883a8b3
children d1f31f5f6401
line source
1 # SliTaz package receipt.
3 PACKAGE="BootProg"
4 VERSION="slitaz"
5 CATEGORY="base-system"
6 SHORT_DESC="FAT12/16/32 Bootsector for .COMs/.EXEs"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://wiki.osdev.org/BootProg"
11 BUILD_DEPENDS="nasm"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 mkdir -p $src && cd $src
17 for i in bootex boot16 boot32 ; do
18 cp $stuff/$i.asm .
19 nasm $i.asm -f bin -o $i.bin -l $i.lst
20 done
21 sed '1,/^exit 1/!d' $stuff/bootprog.sh > bootprog
22 tar czf - boot16.bin boot32.bin bootex.bin > set.tar.gz
23 [ "$(which advdef)" ] && advdef -z4 set.tar.gz
24 cat set.tar.gz >> bootprog
25 chmod +x bootprog
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/bin
32 cp -a $src/bootprog $fs/usr/bin
33 }