wok-next annotate linld/receipt @ rev 21573
updated dansguardian (2.10.1.1 -> 2.12.0.3)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jun 22 17:38:17 2020 +0100 (2020-06-22) |
parents | a3c581bf52b8 |
children |
rev | line source |
---|---|
pascal@2330 | 1 # SliTaz package receipt. |
pascal@2330 | 2 |
pascal@2330 | 3 PACKAGE="linld" |
pascal@2330 | 4 VERSION="0.97" |
pascal@2330 | 5 CATEGORY="system-tools" |
al@21020 | 6 SHORT_DESC="Boot loader for DOS/Win9x" |
pascal@2330 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15379 | 8 LICENSE="GPL" |
al@20906 | 9 SUFFIX="${VERSION//./}" |
al@20906 | 10 WEB_SITE="https://busybox.net/~vda/linld/README.txt" |
al@20906 | 11 |
al@20906 | 12 TARBALL="$PACKAGE${SUFFIX}devel.tar.bz2" |
al@20906 | 13 WGET_URL="https://busybox.net/~vda/linld/$TARBALL" |
pascal@2330 | 14 |
pascal@19410 | 15 BUILD_DEPENDS="dosbox upx" |
pascal@17446 | 16 |
al@21020 | 17 compile_rules() { |
al@21020 | 18 mv DIST $src 2>/dev/null |
pascal@2330 | 19 cd $src |
pascal@19515 | 20 rm LINLD$SUFFIX/CRTL.CPP |
pascal@19515 | 21 cp $stuff/src/* LINLD$SUFFIX/ |
pascal@19515 | 22 cp -a LINLD$SUFFIX TAZBOOT |
pascal@19515 | 23 sed -i 's/-3/-DNO386/' TAZBOOT/BCCOPT.OPT |
pascal@17446 | 24 unix2dos > MAKE.BAT <<EOT |
pascal@17446 | 25 d: |
pascal@19410 | 26 cd linld$SUFFIX |
pascal@19515 | 27 $(cat LINLD$SUFFIX/!COMPILE.BAT) |
pascal@19515 | 28 cd .. |
pascal@19515 | 29 cd tazboot |
pascal@19515 | 30 $(cat TAZBOOT/!COMPILEX.BAT) |
pascal@17446 | 31 EOT |
pascal@19667 | 32 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src" \ |
pascal@19667 | 33 2>&1 | grep -v 'ALSA lib' |
pascal@20198 | 34 grep Error: */LNK.LOG && return 1 |
pascal@19410 | 35 cp LINLD$SUFFIX/LINLD.COM linld.com |
pascal@19515 | 36 cp TAZBOOT/TAZBOOT.COM tazboot.com |
pascal@19414 | 37 objdump -D -b binary -mi386 -Maddr16,data16 --adjust-vma=0x100 \ |
pascal@19414 | 38 linld.com > linld.lst |
pascal@20198 | 39 upx -5 --8086 linld.com |
pascal@20198 | 40 upx -5 --8086 tazboot.com |
pascal@18230 | 41 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S |
pascal@18230 | 42 objcopy -O binary tobzimage.o tobzimage.bin |
pascal@18230 | 43 cp $stuff/tobzimage . |
pascal@18230 | 44 ./tobzimage --build |
pascal@20563 | 45 mkdir -p $install/usr/share/boot $install/usr/share/doc $install/usr/bin |
pascal@20563 | 46 cp linld.com $install/usr/share/boot |
pascal@20566 | 47 cp $stuff/linld.txt $install/usr/share/doc |
pascal@20563 | 48 cp tobzimage $install/usr/bin |
pascal@2330 | 49 } |
pascal@2330 | 50 |
al@21020 | 51 genpkg_rules() { |
pascal@20563 | 52 mkdir -p $fs/usr/share |
pascal@20563 | 53 cp -a $install/usr/share/boot $fs/usr/share |
pascal@2330 | 54 } |