wok-next annotate linld/receipt @ rev 20906
Update homepages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Aug 10 12:53:17 2018 +0300 (2018-08-10) |
parents | c3c5f21c5e0c |
children | d5aab818505e |
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" |
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 |
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@19667 | 34 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src" \ |
pascal@19667 | 35 2>&1 | grep -v 'ALSA lib' |
pascal@20198 | 36 grep Error: */LNK.LOG && return 1 |
pascal@19410 | 37 cp LINLD$SUFFIX/LINLD.COM linld.com |
pascal@19515 | 38 cp TAZBOOT/TAZBOOT.COM tazboot.com |
pascal@19414 | 39 objdump -D -b binary -mi386 -Maddr16,data16 --adjust-vma=0x100 \ |
pascal@19414 | 40 linld.com > linld.lst |
pascal@20198 | 41 upx -5 --8086 linld.com |
pascal@20198 | 42 upx -5 --8086 tazboot.com |
pascal@18230 | 43 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S |
pascal@18230 | 44 objcopy -O binary tobzimage.o tobzimage.bin |
pascal@18230 | 45 cp $stuff/tobzimage . |
pascal@18230 | 46 ./tobzimage --build |
pascal@20563 | 47 mkdir -p $install/usr/share/boot $install/usr/share/doc $install/usr/bin |
pascal@20563 | 48 cp linld.com $install/usr/share/boot |
pascal@20566 | 49 cp $stuff/linld.txt $install/usr/share/doc |
pascal@20563 | 50 cp tobzimage $install/usr/bin |
pascal@2330 | 51 } |
pascal@2330 | 52 |
pascal@2330 | 53 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2330 | 54 genpkg_rules() |
pascal@2330 | 55 { |
pascal@20563 | 56 mkdir -p $fs/usr/share |
pascal@20563 | 57 cp -a $install/usr/share/boot $fs/usr/share |
pascal@2330 | 58 } |