wok annotate linld/receipt @ rev 19515
linld: multi initrd support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 22 21:19:01 2016 +0100 (2016-11-22) |
parents | a531336a57c1 |
children | 7f92b23984dc |
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" |
pascal@2330 | 6 SHORT_DESC="Boot loader for DOS/Win9x." |
pascal@2330 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15379 | 8 LICENSE="GPL" |
pascal@19410 | 9 SUFFIX="$(echo $VERSION | sed 's/[^0-9]//')" |
pascal@19410 | 10 TARBALL="${PACKAGE}${SUFFIX}devel.tar.bz2" |
pascal@2330 | 11 BASE_SITE="http://busybox.net/~vda/$PACKAGE" |
pascal@2330 | 12 WEB_SITE="$BASE_SITE/README.txt" |
pascal@2330 | 13 WGET_URL="$BASE_SITE/$TARBALL" |
pascal@2330 | 14 |
pascal@19410 | 15 BUILD_DEPENDS="dosbox upx" |
pascal@17446 | 16 |
pascal@2330 | 17 # Rules to configure and make the package. |
pascal@2330 | 18 compile_rules() |
pascal@2330 | 19 { |
pascal@2330 | 20 mv DIST $src 2> /dev/null |
pascal@2330 | 21 cd $src |
pascal@19515 | 22 rm LINLD$SUFFIX/CRTL.CPP |
pascal@19515 | 23 cp $stuff/src/* LINLD$SUFFIX/ |
pascal@19515 | 24 cp -a LINLD$SUFFIX TAZBOOT |
pascal@19515 | 25 sed -i 's/-3/-DNO386/' TAZBOOT/BCCOPT.OPT |
pascal@17446 | 26 unix2dos > MAKE.BAT <<EOT |
pascal@17446 | 27 d: |
pascal@19410 | 28 cd linld$SUFFIX |
pascal@19515 | 29 $(cat LINLD$SUFFIX/!COMPILE.BAT) |
pascal@19515 | 30 cd .. |
pascal@19515 | 31 cd tazboot |
pascal@19515 | 32 $(cat TAZBOOT/!COMPILEX.BAT) |
pascal@17446 | 33 EOT |
pascal@17446 | 34 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src" |
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@19410 | 39 upx linld.com |
pascal@19515 | 40 upx 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@2330 | 45 } |
pascal@2330 | 46 |
pascal@2330 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2330 | 48 genpkg_rules() |
pascal@2330 | 49 { |
pascal@19494 | 50 mkdir -p $fs/usr/share/boot $fs/usr/bin $install/usr/share/doc |
pascal@19410 | 51 cp $src/linld.com $stuff/linld.txt $fs/usr/share/boot/ |
pascal@19494 | 52 cp $stuff/linld.txt $install/usr/share/doc |
pascal@19465 | 53 #cp $src/tobzimage $fs/usr/bin |
pascal@2330 | 54 } |