wok-current view BootProg/receipt @ rev 25380

updated unhide (20130526 -> 20210124)
author Hans-G?nter Theisgen
date Sat Jul 30 16:42:50 2022 +0100 (2022-07-30)
parents b9659e3c2111
children 78727b04c002
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 lzma"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 mkdir -p $src && cd $src
17 sed '1,/^exit 1/!d' $stuff/bootprog.sh > bootprog
18 for i in boot16 boot32 bootex ; do
19 cp $stuff/$i.asm .
20 nasm $i.asm -f bin -o $i.bin -l $i.lst && cat $i.bin
21 done | lzma -9 >> bootprog
22 chmod +x bootprog
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/bin
29 cp -a $src/bootprog $fs/usr/bin
30 }