wok view BootProg/receipt @ rev 25485

BootProg/fat32: active fat support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 01 16:13:12 2022 +0000 (18 months ago)
parents f234d4e2fdbd
children 3c71bb4367c3
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 xz"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 mkdir -p $src && cd $src
17 bs="boot16 bootex boot32"
18 for i in $bs ; do
19 cp $stuff/$i.asm .
20 nasm $i.asm -f bin -o $i.bin -l $i.lst || return 1
21 done
22 sed '1,2!d' $stuff/bootprog.sh > bootprog
23 {
24 sed "1,2d;s|FAT32SZ|$(stat -c %s boot32.bin)|" $stuff/bootprog.sh
25 cat ${bs// /.bin }.bin
26 } | xz -z --format=lzma --lzma1=lc=0,pb=0,nice=33,dict=4k >> bootprog
27 chmod +x bootprog
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin
34 cp -a $src/bootprog $fs/usr/bin
35 }