wok view linld/receipt @ rev 24950
updated nagios-plugins and nagios-plugins-mysql (2.3.3 -> 2.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 23 10:03:51 2022 +0100 (2022-04-23) |
parents | c11594098e34 |
children |
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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WEB_SITE%/*} 2>/dev/null | \
24 sed "/tar/!d;s|.*$PACKAGE\\(.*\\)devel.*\".*|\\1|;s|^\(.\)|&.|;q"
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 [ -s $SRC/$EXTRA_TOOL ] ||
31 busybox wget -O $SRC/$EXTRA_TOOL $EXTRA_TOOL_URL
32 mv DIST $src 2> /dev/null
33 cd $src
34 unzip $SRC/$EXTRA_TOOL > /dev/null
35 rm LINLD$SUFFIX/CRTL.CPP LINLD$SUFFIX/INT15_88.ASM
36 cp $stuff/src/* LINLD$SUFFIX/
37 sed -i '/-3/d' LINLD$SUFFIX/BCCOPT.OPT
38 cp -a LINLD$SUFFIX TAZBOOT
39 unix2dos > MAKE.BAT <<EOT
40 d:
41 cd linld$SUFFIX
42 $(cat LINLD$SUFFIX/!COMPILE.BAT)
43 EOT
44 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src" \
45 2>&1 | grep -v 'ALSA lib'
46 dos2unix */*.[LM]*
47 grep '^Fatal[ :]' */LNK.LOG */CPP.LOG && return 1
48 grep '\*Fatal\*' */*.LST && return 1
49 grep '^Error[ :]' */LNK.LOG */CPP.LOG && return 1
50 grep '\*Error\*' */*.LST && return 1
51 grep '^Warning[ :]' */LNK.LOG */CPP.LOG
52 grep '\*Warning\*' */*.LST
53 cp LINLD$SUFFIX/LINLD.COM linld.com
54 objdump -D -b binary -mi386 -Maddr16,data16 --adjust-vma=0x100 \
55 linld.com > linld.lst
56 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S
57 objcopy --only-section=.text -O binary tobzimage.o tobzimage.bin
58 cp $stuff/tobzimage .
59 ./tobzimage --build
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 mkdir -p $fs/usr/share/boot $fs/usr/bin $install/usr/share/doc
66 cp $src/linld.com $stuff/linld.txt $fs/usr/share/boot/
67 cp $stuff/linld.txt $install/usr/share/doc
68 #cp $src/tobzimage $fs/usr/bin
69 }