wok-6.x rev 19410
linld: shrink
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 21 11:29:01 2016 +0200 (2016-09-21) |
parents | cb01d1d24314 |
children | 60f274d62cb6 |
files | linld/receipt |
line diff
1.1 --- a/linld/receipt Tue Sep 20 16:04:52 2016 +0200 1.2 +++ b/linld/receipt Wed Sep 21 11:29:01 2016 +0200 1.3 @@ -6,12 +6,13 @@ 1.4 SHORT_DESC="Boot loader for DOS/Win9x." 1.5 MAINTAINER="pascal.bellard@slitaz.org" 1.6 LICENSE="GPL" 1.7 -TARBALL="${PACKAGE}$(echo $VERSION | sed 's/[^0-9]//')devel.tar.bz2" 1.8 +SUFFIX="$(echo $VERSION | sed 's/[^0-9]//')" 1.9 +TARBALL="${PACKAGE}${SUFFIX}devel.tar.bz2" 1.10 BASE_SITE="http://busybox.net/~vda/$PACKAGE" 1.11 WEB_SITE="$BASE_SITE/README.txt" 1.12 WGET_URL="$BASE_SITE/$TARBALL" 1.13 1.14 -BUILD_DEPENDS="dosbox" 1.15 +BUILD_DEPENDS="dosbox upx" 1.16 1.17 # Rules to configure and make the package. 1.18 compile_rules() 1.19 @@ -20,13 +21,15 @@ 1.20 cd $src 1.21 patch -p0 < $stuff/load.u 1.22 patch -p0 < $stuff/jump.u 1.23 - sed -i 's/^@pause/rem &/' LINLD097/*.BAT 1.24 + sed -i 's/^@pause/rem &/' LINLD$SUFFIX/*.BAT 1.25 unix2dos > MAKE.BAT <<EOT 1.26 d: 1.27 -cd linld097 1.28 +cd linld$SUFFIX 1.29 !compile.bat 1.30 EOT 1.31 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src" 1.32 + cp LINLD$SUFFIX/LINLD.COM linld.com 1.33 + upx linld.com 1.34 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S 1.35 objcopy -O binary tobzimage.o tobzimage.bin 1.36 cp $stuff/tobzimage . 1.37 @@ -37,8 +40,6 @@ 1.38 genpkg_rules() 1.39 { 1.40 mkdir -p $fs/usr/share/boot $fs/usr/bin 1.41 - cp $src/LINLD$(echo $VERSION | sed 's/[^0-9]//')/LINLD.COM \ 1.42 - $fs/usr/share/boot/linld.com 1.43 - cp $stuff/linld.txt $fs/usr/share/boot/ 1.44 + cp $src/linld.com $stuff/linld.txt $fs/usr/share/boot/ 1.45 cp $src/tobzimage $fs/usr/bin 1.46 }