wok-current annotate BootProg/receipt @ rev 25584
Fix ncursesw build
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu May 25 10:56:33 2023 +0000 (19 months ago) |
parents | 3c71bb4367c3 |
children |
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@25564 | 17 bs="boot12 boot16 bootex boot32" |
pascal@25564 | 18 cp $stuff/boot??.asm . |
pascal@25564 | 19 cp boot16.asm boot12.asm |
pascal@25564 | 20 sed -i 's|^FAT12.*|FAT12 equ 0|' boot16.asm |
pascal@25564 | 21 sed -i 's|^FAT16.*|FAT16 equ 0|' boot12.asm |
pascal@25485 | 22 for i in $bs ; do |
pascal@25485 | 23 nasm $i.asm -f bin -o $i.bin -l $i.lst || return 1 |
pascal@25485 | 24 done |
pascal@25485 | 25 sed '1,2!d' $stuff/bootprog.sh > bootprog |
pascal@25485 | 26 { |
pascal@25485 | 27 sed "1,2d;s|FAT32SZ|$(stat -c %s boot32.bin)|" $stuff/bootprog.sh |
pascal@25485 | 28 cat ${bs// /.bin }.bin |
pascal@25569 | 29 } | xz -z --format=lzma --lzma1=lc=0,pb=0,nice=33,dict=4k >> bootprog |
pascal@24476 | 30 chmod +x bootprog |
pascal@24476 | 31 } |
pascal@24476 | 32 |
pascal@24476 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@24476 | 34 genpkg_rules() |
pascal@24476 | 35 { |
pascal@24476 | 36 mkdir -p $fs/usr/bin |
pascal@24476 | 37 cp -a $src/bootprog $fs/usr/bin |
pascal@24476 | 38 } |