wok view linld/receipt @ rev 19635

Up SliTaz projects: cookutils(867), slitaz-base-files(321), slitaz-boot-scripts(437), slitaz-tools(1009), tazbug(95), tazirc(20), tazlito(448), tazpkg(933).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jan 17 17:38:43 2017 +0200 (2017-01-17)
parents 7f92b23984dc
children e0009d5c4bf1
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 rm LINLD$SUFFIX/CRTL.CPP
23 cp $stuff/src/* LINLD$SUFFIX/
24 cp -a LINLD$SUFFIX TAZBOOT
25 sed -i 's/-3/-DNO386/' TAZBOOT/BCCOPT.OPT
26 unix2dos > MAKE.BAT <<EOT
27 d:
28 cd linld$SUFFIX
29 $(cat LINLD$SUFFIX/!COMPILE.BAT)
30 cd ..
31 cd tazboot
32 $(cat TAZBOOT/!COMPILEX.BAT)
33 EOT
34 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src"
35 cp LINLD$SUFFIX/LINLD.COM linld.com
36 cp TAZBOOT/TAZBOOT.COM tazboot.com
37 objdump -D -b binary -mi386 -Maddr16,data16 --adjust-vma=0x100 \
38 linld.com > linld.lst
39 sh $stuff/upx.sh linld.com
40 sh $stuff/upx.sh tazboot.com
41 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S
42 objcopy -O binary tobzimage.o tobzimage.bin
43 cp $stuff/tobzimage .
44 ./tobzimage --build
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/share/boot $fs/usr/bin $install/usr/share/doc
51 cp $src/linld.com $stuff/linld.txt $fs/usr/share/boot/
52 cp $stuff/linld.txt $install/usr/share/doc
53 #cp $src/tobzimage $fs/usr/bin
54 }