wok-current annotate BootProg/receipt @ rev 25547
Up utftpd (0.2.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 23 12:22:34 2023 +0000 (22 months ago) |
parents | f234d4e2fdbd |
children | 3c71bb4367c3 |
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@25454 | 11 BUILD_DEPENDS="nasm xz" |
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@25485 | 17 bs="boot16 bootex boot32" |
pascal@25485 | 18 for i in $bs ; do |
pascal@24479 | 19 cp $stuff/$i.asm . |
pascal@25485 | 20 nasm $i.asm -f bin -o $i.bin -l $i.lst || return 1 |
pascal@25485 | 21 done |
pascal@25485 | 22 sed '1,2!d' $stuff/bootprog.sh > bootprog |
pascal@25485 | 23 { |
pascal@25485 | 24 sed "1,2d;s|FAT32SZ|$(stat -c %s boot32.bin)|" $stuff/bootprog.sh |
pascal@25485 | 25 cat ${bs// /.bin }.bin |
pascal@25485 | 26 } | xz -z --format=lzma --lzma1=lc=0,pb=0,nice=33,dict=4k >> bootprog |
pascal@24476 | 27 chmod +x bootprog |
pascal@24476 | 28 } |
pascal@24476 | 29 |
pascal@24476 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@24476 | 31 genpkg_rules() |
pascal@24476 | 32 { |
pascal@24476 | 33 mkdir -p $fs/usr/bin |
pascal@24476 | 34 cp -a $src/bootprog $fs/usr/bin |
pascal@24476 | 35 } |