wok annotate btmgr/receipt @ rev 25388
updated meson (0.60.2 -> 0.62.2)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jul 31 16:52:43 2022 +0100 (2022-07-31) |
parents | 970c5ec9a60a |
children | b0069c845544 |
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@1342 | 10 WEB_SITE="http://$PACKAGE.sourceforge.net/about.html" |
pascal@516 | 11 WGET_URL="http://$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@24353 | 18 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;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 } |