wok view linld/receipt @ rev 19493
Down tazlito (438): bugs with the *.flavor processing.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Nov 13 03:59:47 2016 +0200 (2016-11-13) |
parents | 1c458fa173fb |
children | a531336a57c1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linld"
4 VERSION="0.97"
5 CATEGORY="system-tools"
6 SHORT_DESC="Boot loader for DOS/Win9x."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 SUFFIX="$(echo $VERSION | sed 's/[^0-9]//')"
10 TARBALL="${PACKAGE}${SUFFIX}devel.tar.bz2"
11 BASE_SITE="http://busybox.net/~vda/$PACKAGE"
12 WEB_SITE="$BASE_SITE/README.txt"
13 WGET_URL="$BASE_SITE/$TARBALL"
15 BUILD_DEPENDS="dosbox upx"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mv DIST $src 2> /dev/null
21 cd $src
22 patch -p0 < $stuff/load.u
23 patch -p0 < $stuff/jump.u
24 patch -p0 < $stuff/a20.u
25 patch -p0 < $stuff/memcpy32.u
26 sed -i 's/^@pause/rem &/;s|^tasm|& /l|' LINLD$SUFFIX/*.BAT
27 unix2dos > MAKE.BAT <<EOT
28 d:
29 cd linld$SUFFIX
30 !compile.bat
31 EOT
32 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src"
33 cp LINLD$SUFFIX/LINLD.COM linld.com
34 objdump -D -b binary -mi386 -Maddr16,data16 --adjust-vma=0x100 \
35 linld.com > linld.lst
36 upx linld.com
37 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S
38 objcopy -O binary tobzimage.o tobzimage.bin
39 cp $stuff/tobzimage .
40 ./tobzimage --build
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share/boot $fs/usr/bin
47 cp $src/linld.com $stuff/linld.txt $fs/usr/share/boot/
48 #cp $src/tobzimage $fs/usr/bin
49 }