wok view linld/receipt @ rev 22303
updated xorgxrdp (0.2.4 -> 0.2.11)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 17:23:06 2019 +0100 (2019-11-13) |
parents | 642355b9b9fd |
children | 46921aca812b |
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="${VERSION/./}"
10 TARBALL="${PACKAGE}${SUFFIX}devel.tar.bz2"
11 BASE_SITE="https://busybox.net/~vda/$PACKAGE"
12 WEB_SITE="$BASE_SITE/README.txt"
13 WGET_URL="$BASE_SITE/$TARBALL"
14 EXTRA_TOOL_URL="ftp://ftp.ibiblio.org/pub/micro/pc-stuff/freedos/gnuish/mawk122x.zip"
15 EXTRA_TOOL="$(basename $EXTRA_TOOL_URL)"
16 EXTRA_SOURCE_FILES="$EXTRA_TOOL"
18 BUILD_DEPENDS="dosbox upx"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 [ -s $SRC/$EXTRA_TOOL ] ||
24 busybox wget -O $SRC/$EXTRA_TOOL $EXTRA_TOOL_URL
25 mv DIST $src 2> /dev/null
26 cd $src
27 unzip $SRC/$EXTRA_TOOL > /dev/null
28 rm LINLD$SUFFIX/CRTL.CPP LINLD$SUFFIX/INT15_88.ASM
29 cp $stuff/src/* LINLD$SUFFIX/
30 sed -i 's/-3/-DNO386/' LINLD$SUFFIX/BCCOPT.OPT
31 cp -a LINLD$SUFFIX TAZBOOT
32 unix2dos > MAKE.BAT <<EOT
33 d:
34 cd linld$SUFFIX
35 $(cat LINLD$SUFFIX/!COMPILE.BAT)
36 cd ..
37 cd tazboot
38 $(cat TAZBOOT/!COMPILEX.BAT)
39 EOT
40 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src" \
41 2>&1 | grep -v 'ALSA lib'
42 grep '^Fatal[ :]' */LNK.LOG */CPP.LOG && return 1
43 grep '*Fatal*' */*.LST && return 1
44 grep '^Error[ :]' */LNK.LOG */CPP.LOG && return 1
45 grep '*Error*' */*.LST && return 1
46 grep '^Warning[ :]' */LNK.LOG */CPP.LOG
47 grep '*Warning*' */*.LST
48 cp LINLD$SUFFIX/LINLD.COM linld.com
49 cp TAZBOOT/TAZBOOT.COM tazboot.com
50 objdump -D -b binary -mi386 -Maddr16,data16 --adjust-vma=0x100 \
51 linld.com > linld.lst
52 linld=linld.com
53 [ $(stat -c %s $linld) -le 4096 ] && ls -l $linld && linld=
54 for f in $linld tazboot.com ; do
55 cp $f tmp.com
56 for i in $(seq 1 9); do
57 upx -$i --8086 tmp.com
58 [ $(stat -c "%s" $f) -gt $(stat -c "%s" tmp.com) ] &&
59 cp tmp.com $f
60 upx -d tmp.com
61 done > /dev/null 2>&1
62 rm tmp.com
63 done
64 upx -l $linld tazboot.com
65 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S
66 objcopy -O binary tobzimage.o tobzimage.bin
67 cp $stuff/tobzimage .
68 ./tobzimage --build
69 }
71 # Rules to gen a SliTaz package suitable for Tazpkg.
72 genpkg_rules()
73 {
74 mkdir -p $fs/usr/share/boot $fs/usr/bin $install/usr/share/doc
75 cp $src/linld.com $stuff/linld.txt $fs/usr/share/boot/
76 cp $stuff/linld.txt $install/usr/share/doc
77 #cp $src/tobzimage $fs/usr/bin
78 }