wok-6.x view plop/receipt @ rev 23953
mrxvt-unicode: modified dependencies
author | Hans-G?nter Theisgen |
---|---|
date | Tue Sep 22 16:18:32 2020 +0100 (2020-09-22) |
parents | 89b052a8b781 |
children | 8d938c826a9b |
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."
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"
13 BUILD_DEPENDS="xz"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 while read ofs data name; do
19 echo -en "\x$data" | \
20 dd conv=notrunc of=plpbt.bin bs=1 seek=$((0x$ofs))
21 done <<EOT
22 0288 00 videoMode=text
23 0295 00 stars=off
24 0299 01 font=bios
25 029A 00 zoomanimation=off
26 EOT
27 cp $stuff/*.S $stuff/pack .
28 for i in bootloader unpack ; do
29 cc -o $i.o -Wa,-a=$i.lst -c $i.S
30 objcopy -O binary $i.o $i.bin
31 done
32 sed -i "s/VERSION/$VERSION/" pack
33 ./pack --build bootloader.bin unpack.bin
34 ./pack plpbt.bin plop
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/boot $install/usr/share
41 cp $src/plop $fs/boot/plop.exe
42 cp -a $src/doc $install/usr/share
43 cp -a $src/*.txt $src/*.TXT $install/usr/share/doc
44 }
46 # Pre and post install commands for Tazpkg.
47 post_install()
48 {
49 [ -s $1/boot/isolinux/isolinux.cfg ] &&
50 ! grep -qs '/plop.exe' $1/boot/isolinux/isolinux.cfg &&
51 sed -i 's|i18n.cfg|&\n\
52 LABEL plop usb pcmcia\
53 MENU LABEL USB/PCMCIA boot\
54 KERNEL /boot/plop.exe|' $1/boot/isolinux/isolinux.cfg
55 true
56 }