wok-current view btmgr/receipt @ rev 24353

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