wok-current annotate plop/receipt @ rev 23947
syslinux/taziso/usbbootkey: gpt supprt
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 20 15:59:25 2020 +0000 (2020-09-20) |
parents | 89b052a8b781 |
children | 8d938c826a9b |
rev | line source |
---|---|
pascal@23919 | 1 # SliTaz package receipt. |
pascal@23919 | 2 |
pascal@23919 | 3 PACKAGE="plop" |
pascal@23919 | 4 VERSION="5.0.15" |
pascal@23919 | 5 CATEGORY="base-system" |
pascal@23919 | 6 SHORT_DESC="USB / IDE-CD / PCMCIA CardBus and others boot utility." |
pascal@23919 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@23919 | 8 LICENSE="other" |
pascal@23919 | 9 WEB_SITE="https://www.plop.at/en/bootmanagers.html" |
pascal@23919 | 10 TARBALL="plpbt-$VERSION.zip" |
pascal@23919 | 11 WGET_URL="https://download.plop.at/files/bootmngr/$TARBALL" |
pascal@23919 | 12 |
pascal@23919 | 13 BUILD_DEPENDS="xz" |
pascal@23919 | 14 |
pascal@23919 | 15 # Rules to configure and make the package. |
pascal@23919 | 16 compile_rules() |
pascal@23919 | 17 { |
pascal@23919 | 18 while read ofs data name; do |
pascal@23919 | 19 echo -en "\x$data" | \ |
pascal@23919 | 20 dd conv=notrunc of=plpbt.bin bs=1 seek=$((0x$ofs)) |
pascal@23919 | 21 done <<EOT |
pascal@23919 | 22 0288 00 videoMode=text |
pascal@23919 | 23 0295 00 stars=off |
pascal@23919 | 24 0299 01 font=bios |
pascal@23919 | 25 029A 00 zoomanimation=off |
pascal@23919 | 26 EOT |
pascal@23919 | 27 cp $stuff/*.S $stuff/pack . |
pascal@23919 | 28 for i in bootloader unpack ; do |
pascal@23919 | 29 cc -o $i.o -Wa,-a=$i.lst -c $i.S |
pascal@23919 | 30 objcopy -O binary $i.o $i.bin |
pascal@23919 | 31 done |
pascal@23919 | 32 sed -i "s/VERSION/$VERSION/" pack |
pascal@23919 | 33 ./pack --build bootloader.bin unpack.bin |
pascal@23919 | 34 ./pack plpbt.bin plop |
pascal@23919 | 35 } |
pascal@23919 | 36 |
pascal@23919 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@23919 | 38 genpkg_rules() |
pascal@23919 | 39 { |
pascal@23919 | 40 mkdir -p $fs/boot $install/usr/share |
pascal@23919 | 41 cp $src/plop $fs/boot/plop.exe |
pascal@23919 | 42 cp -a $src/doc $install/usr/share |
pascal@23919 | 43 cp -a $src/*.txt $src/*.TXT $install/usr/share/doc |
pascal@23919 | 44 } |
pascal@23919 | 45 |
pascal@23919 | 46 # Pre and post install commands for Tazpkg. |
pascal@23919 | 47 post_install() |
pascal@23919 | 48 { |
pascal@23919 | 49 [ -s $1/boot/isolinux/isolinux.cfg ] && |
pascal@23926 | 50 ! grep -qs '/plop.exe' $1/boot/isolinux/isolinux.cfg && |
pascal@23926 | 51 sed -i 's|i18n.cfg|&\n\ |
pascal@23926 | 52 LABEL plop usb pcmcia\ |
pascal@23919 | 53 MENU LABEL USB/PCMCIA boot\ |
pascal@23926 | 54 KERNEL /boot/plop.exe|' $1/boot/isolinux/isolinux.cfg |
pascal@23919 | 55 true |
pascal@23919 | 56 } |