wok view linld/receipt @ rev 19503

Up firefox-official (50.0)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Nov 17 16:45:54 2016 +0200 (2016-11-17)
parents 8c67051bb198
children bb42796dcd3b
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 $install/usr/share/doc
47 cp $src/linld.com $stuff/linld.txt $fs/usr/share/boot/
48 cp $stuff/linld.txt $install/usr/share/doc
49 #cp $src/tobzimage $fs/usr/bin
50 }