wok-next diff btmgr/receipt @ rev 21010

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Oct 12 16:40:30 2018 +0300 (2018-10-12)
parents eb8067417980
children d5aab818505e
line diff
     1.1 --- a/btmgr/receipt	Sat Nov 30 10:06:29 2013 +0000
     1.2 +++ b/btmgr/receipt	Fri Oct 12 16:40:30 2018 +0300
     1.3 @@ -1,42 +1,42 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="btmgr"
     1.8  VERSION="3.7-1"
     1.9  CATEGORY="system-tools"
    1.10 -SHORT_DESC="Versatile floppy bootloader (can boot many CD-ROM)."
    1.11 +SHORT_DESC="Versatile floppy bootloader (can boot many CD-ROM)"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="http://btmgr.sourceforge.net/about.html"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://$PACKAGE.sourceforge.net/about.html"
    1.18 -WGET_URL="http://$PACKAGE.sourceforge.net/${VERSION%-*}/$TARBALL"
    1.19 -TAGS="boot loader floppy CD"
    1.20 +WGET_URL="http://btmgr.sourceforge.net/${VERSION%-*}/$TARBALL"
    1.21  
    1.22 -# Rules to configure and make the package.
    1.23 -compile_rules()
    1.24 -{
    1.25 +compile_rules() {
    1.26  	echo "I'm too lazy to hack and build it !"
    1.27 -# $stuff/btmgr has been built this way:
    1.28 -# 1- # wget http://btmgr.sourceforge.net/${VERSION%-*}/sbminst-static
    1.29 -# 2- # chmod +x sbminst-static
    1.30 -# 3- # dd if=/dev/zero of=/dev/fd0 bs=18k count=80
    1.31 -# 4- # ./sbminst-static -t us -d /dev/fd0
    1.32 -# 5- # dd if=/dev/fd0 of=$stuff/btmgr
    1.33 -# 6- remove tailing zeros $stuff/btmgr
    1.34 +	# $stuff/btmgr has been built this way:
    1.35 +	# 1- # wget http://btmgr.sourceforge.net/${VERSION%-*}/sbminst-static
    1.36 +	# 2- # chmod +x sbminst-static
    1.37 +	# 3- # dd if=/dev/zero of=/dev/fd0 bs=18k count=80
    1.38 +	# 4- # ./sbminst-static -t us -d /dev/fd0
    1.39 +	# 5- # dd if=/dev/fd0 of=$stuff/btmgr
    1.40 +	# 6- remove tailing zeros $stuff/btmgr
    1.41 +
    1.42 +	install -Dm644 $stuff/btmgr $install/usr/share/boot/btmgr
    1.43  }
    1.44  
    1.45  
    1.46 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.47 -genpkg_rules()
    1.48 -{
    1.49 -	mkdir -p $fs/usr/share/boot
    1.50 -	cp $stuff/btmgr $fs/usr/share/boot/
    1.51 +genpkg_rules() {
    1.52 +	copy @std
    1.53 +	TAGS="boot loader floppy CD"
    1.54  }
    1.55  
    1.56 -# Pre and post install commands for Tazpkg.
    1.57 -post_install()
    1.58 -{
    1.59 -	echo "----"
    1.60 -	echo "You can create boot floppy with:"
    1.61 -	echo "# cp /usr/share/boot/btmgr /dev/fd0"
    1.62 -	echo "----"
    1.63 +post_install() {
    1.64 +	cat <<EOT
    1.65 +
    1.66 +	.-------------------------------------.
    1.67 +	| You can create boot floppy with:    |
    1.68 +	|                                     |
    1.69 +	| # cp /usr/share/boot/btmgr /dev/fd0 |
    1.70 +	'-------------------------------------'
    1.71 +EOT
    1.72  }