wok-current view BootProg/receipt @ rev 24525
Up libav (0.6.6 -> 12.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 22 16:15:28 2022 +0000 (2022-02-22) |
parents | d211771a0500 |
children | b9659e3c2111 |
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 #TARBALL="$PACKAGE-$VERSION.tar.zip"
10 WEB_SITE="https://wiki.osdev.org/BootProg"
11 #WGET_URL="$WEB_SITE/archive/refs/heads/master.zip"
13 BUILD_DEPENDS="nasm"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 mkdir -p $src && cd $src
19 for i in bootex boot16 boot32 ; do
20 cp $stuff/$i.asm .
21 nasm $i.asm -f bin -o $i.bin -l $i.lst
22 done
23 sed '1,/^exit 1/!d' $stuff/bootprog.sh > bootprog
24 tar czf - boot16.bin boot32.bin bootex.bin > set.tar.gz
25 [ "$(which advdef)" ] && advdef -z4 set.tar.gz
26 cat set.tar.gz >> 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 }