wok-6.x view linld/receipt @ rev 19536
Up: docbook-xsl (1.79.1): conversion xml->man now works; udisks2 (2.1.8): now it auto-unmount and free /media/* folders before reboot/shutdown.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 01 04:42:13 2016 +0200 (2016-12-01) |
parents | a531336a57c1 |
children | 7f92b23984dc |
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 upx linld.com
40 upx 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 }