wok view linld/receipt @ rev 19835

hatari: fix install paths
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 11 08:32:51 2017 +0100 (2017-03-11)
parents 052a6e449318
children e6f0efe26374
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 2>&1 | grep -v 'ALSA lib'
36 cp LINLD$SUFFIX/LINLD.COM linld.com
37 cp TAZBOOT/TAZBOOT.COM tazboot.com
38 objdump -D -b binary -mi386 -Maddr16,data16 --adjust-vma=0x100 \
39 linld.com > linld.lst
40 sh $stuff/upx.sh linld.com
41 sh $stuff/upx.sh tazboot.com
42 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S
43 objcopy -O binary tobzimage.o tobzimage.bin
44 cp $stuff/tobzimage .
45 ./tobzimage --build
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/share/boot $fs/usr/bin $install/usr/share/doc
52 cp $src/linld.com $stuff/linld.txt $fs/usr/share/boot/
53 cp $stuff/linld.txt $install/usr/share/doc
54 #cp $src/tobzimage $fs/usr/bin
55 }