wok annotate btmgr/receipt @ rev 25808
created recipe for xmenu
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 19 16:09:37 2024 +0100 (29 hours ago) |
parents | 7f7bd3c9775e |
children |
rev | line source |
---|---|
pascal@516 | 1 # SliTaz package receipt. |
pascal@516 | 2 |
pascal@516 | 3 PACKAGE="btmgr" |
pascal@516 | 4 VERSION="3.7-1" |
pascal@516 | 5 CATEGORY="system-tools" |
pascal@516 | 6 SHORT_DESC="Versatile floppy bootloader (can boot many CD-ROM)." |
pascal@516 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL2" |
pascal@516 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@25469 | 10 WEB_SITE="https://$PACKAGE.sourceforge.net/about.html" |
pascal@25504 | 11 WGET_URL="https://$PACKAGE.sourceforge.net/${VERSION%-*}/$TARBALL" |
jozee@4932 | 12 TAGS="boot loader floppy CD" |
pascal@516 | 13 |
pascal@24353 | 14 # What is the latest version available today? |
pascal@24353 | 15 current_version() |
pascal@24353 | 16 { |
pascal@24353 | 17 wget -O - https://sourceforge.net/projects/btmgr/files/btmgr/ 2>/dev/null | \ |
pascal@25605 | 18 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24353 | 19 sed '/scope="row/!d;s|.*/btmgr/||;s|/.*||;q' |
pascal@24353 | 20 } |
pascal@24353 | 21 |
pascal@516 | 22 # Rules to configure and make the package. |
pascal@516 | 23 compile_rules() |
pascal@516 | 24 { |
pascal@516 | 25 echo "I'm too lazy to hack and build it !" |
pankso@9697 | 26 # $stuff/btmgr has been built this way: |
pascal@516 | 27 # 1- # wget http://btmgr.sourceforge.net/${VERSION%-*}/sbminst-static |
pascal@516 | 28 # 2- # chmod +x sbminst-static |
pascal@516 | 29 # 3- # dd if=/dev/zero of=/dev/fd0 bs=18k count=80 |
pascal@516 | 30 # 4- # ./sbminst-static -t us -d /dev/fd0 |
pankso@9697 | 31 # 5- # dd if=/dev/fd0 of=$stuff/btmgr |
pankso@9697 | 32 # 6- remove tailing zeros $stuff/btmgr |
pascal@516 | 33 } |
pascal@516 | 34 |
pascal@516 | 35 |
pascal@516 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@516 | 37 genpkg_rules() |
pascal@516 | 38 { |
pascal@516 | 39 mkdir -p $fs/usr/share/boot |
pankso@9697 | 40 cp $stuff/btmgr $fs/usr/share/boot/ |
pascal@516 | 41 } |
pascal@516 | 42 |
pascal@516 | 43 # Pre and post install commands for Tazpkg. |
pascal@516 | 44 post_install() |
pascal@516 | 45 { |
pascal@20319 | 46 echo |
pascal@516 | 47 echo "----" |
pascal@516 | 48 echo "You can create boot floppy with:" |
pascal@516 | 49 echo "# cp /usr/share/boot/btmgr /dev/fd0" |
pascal@516 | 50 echo "----" |
pascal@516 | 51 } |