wok annotate linld/receipt @ rev 19751
xfce4-settings: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 18 22:04:37 2017 +0100 (2017-02-18) |
parents | 052a6e449318 |
children | e6f0efe26374 |
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@19736 | 34 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src" \ |
pascal@19736 | 35 2>&1 | grep -v 'ALSA lib' |
pascal@19410 | 36 cp LINLD$SUFFIX/LINLD.COM linld.com |
pascal@19515 | 37 cp TAZBOOT/TAZBOOT.COM tazboot.com |
pascal@19414 | 38 objdump -D -b binary -mi386 -Maddr16,data16 --adjust-vma=0x100 \ |
pascal@19414 | 39 linld.com > linld.lst |
pascal@19557 | 40 sh $stuff/upx.sh linld.com |
pascal@19557 | 41 sh $stuff/upx.sh tazboot.com |
pascal@18230 | 42 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S |
pascal@18230 | 43 objcopy -O binary tobzimage.o tobzimage.bin |
pascal@18230 | 44 cp $stuff/tobzimage . |
pascal@18230 | 45 ./tobzimage --build |
pascal@2330 | 46 } |
pascal@2330 | 47 |
pascal@2330 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2330 | 49 genpkg_rules() |
pascal@2330 | 50 { |
pascal@19494 | 51 mkdir -p $fs/usr/share/boot $fs/usr/bin $install/usr/share/doc |
pascal@19410 | 52 cp $src/linld.com $stuff/linld.txt $fs/usr/share/boot/ |
pascal@19494 | 53 cp $stuff/linld.txt $install/usr/share/doc |
pascal@19465 | 54 #cp $src/tobzimage $fs/usr/bin |
pascal@2330 | 55 } |