wok-tiny view plop/receipt @ rev 173

Fix ctorrent-dnh & tfttest
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 14 09:04:04 2021 +0000 (2021-07-14)
parents aacd5b54d010
children bbb34fe4904d
line source
1 # SliTaz package receipt.
3 PACKAGE="plop"
4 VERSION="5.0.15"
5 CATEGORY="base-system"
6 SHORT_DESC="USB / IDE-CD / PCMCIA CardBus and others boot utility (486+)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="other"
9 WEB_SITE="https://www.plop.at/en/bootmanagers.html"
10 TARBALL="plpbt-$VERSION.zip"
11 WGET_URL="https://download.plop.at/files/bootmngr/$TARBALL"
12 TARGET="i486"
14 BUILD_DEPENDS="xz wget"
16 tune_lzma()
17 {
18 cp $stuff/*.S $stuff/pack .
19 sed "s/VERSION/$VERSION/;s|lzma1=|&nice=$1,|" -i pack
20 while [ -n "$2" ]; do
21 sed "s|^#define PROP_$2 .*|#define PROP_$2 $3|" -i unlzma.S
22 shift 2
23 done
24 for i in bootloader unpack ; do
25 cc -o $i.o -Wa,-a=$i.lst -c $i.S
26 objcopy -O binary $i.o $i.bin
27 done
28 ./pack --build bootloader.bin unpack.bin
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 while read ofs data name; do
35 echo -en "\x$data" | \
36 dd conv=notrunc of=plpbt.bin bs=1 seek=$((0x$ofs))
37 done <<EOT
38 0288 00 videoMode=text
39 0295 00 stars=off
40 0299 01 font=bios
41 029A 00 zoomanimation=off
42 EOT
43 tune_lzma 84,mf=bt2 PB 0 LC 0
44 ./pack plpbt.bin plop
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/boot
51 cp $src/plop $fs/boot/
52 }
54 # Post install/remove commands for Tazpkg.
55 post_install()
56 {
57 grep -qs ^plop $1/boot/bootmenu ||
58 echo "plop Plop,boot Boot manager (may run under DOS, in real mode or with emm386, if renamed to plop.exe)" >> $1/boot/bootmenu
59 }