wok annotate 8086tiny/receipt @ rev 16099
ffserver: fix pkg name
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 16 23:22:20 2014 +0100 (2014-03-16) |
parents | 93337e127536 |
children | e42fcb3f39be |
rev | line source |
---|---|
pascal@15802 | 1 # SliTaz package receipt. |
pascal@15802 | 2 |
pascal@15802 | 3 PACKAGE="8086tiny" |
pascal@15926 | 4 VERSION="1.20" |
pascal@15802 | 5 CATEGORY="system-tools" |
pascal@15802 | 6 SHORT_DESC="PC XT-compatible emulator/virtual machine." |
pascal@15802 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15823 | 8 LICENSE="MIT" |
pascal@15802 | 9 TARBALL="${PACKAGE}_${VERSION/./}.tar.bz2" |
pascal@15802 | 10 WEB_SITE="http://www.megalith.co.uk/8086tiny" |
pascal@15802 | 11 WGET_URL="$WEB_SITE/downloads/$TARBALL" |
pascal@15802 | 12 |
pascal@15802 | 13 DEPENDS="libsdl" |
pascal@15802 | 14 BUILD_DEPENDS="nasm libsdl-dev" |
pascal@15802 | 15 |
pascal@15802 | 16 # Rules to configure and make the package. |
pascal@15802 | 17 compile_rules() |
pascal@15802 | 18 { |
pascal@15904 | 19 make CC=gcc no_graphics && |
pascal@15802 | 20 mv 8086tiny 8086tiny.nographics && |
pascal@15802 | 21 make CC=gcc && |
pascal@15802 | 22 nasm bios_source/bios.asm |
pascal@15802 | 23 } |
pascal@15802 | 24 |
pascal@15802 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15802 | 26 genpkg_rules() |
pascal@15802 | 27 { |
pascal@15802 | 28 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny |
pascal@15802 | 29 cp -a $src/8086tiny $fs/usr/bin |
pascal@15802 | 30 cp -a $src/8086tiny.nographics $fs/usr/bin |
pascal@15802 | 31 cp -a $src/bios_source/bios $fs/usr/share/8086tiny |
pascal@15804 | 32 cat > $fs/usr/bin//8086tiny.sh <<EOT |
pascal@15802 | 33 #!/bin/sh |
pascal@15802 | 34 |
pascal@15823 | 35 if [ ! -e "\$1" ]; then |
pascal@15823 | 36 echo "Usage: \$0 fd_image [hd_image]" |
pascal@15823 | 37 else |
pascal@15823 | 38 clear |
pascal@15823 | 39 stty cbreak raw -echo min 0 |
pascal@15823 | 40 \${TINY8086:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "\$@" |
pascal@15823 | 41 stty cooked echo |
pascal@15823 | 42 fi |
pascal@15802 | 43 EOT |
pascal@15804 | 44 chmod 755 $fs/usr/bin/8086tiny.sh |
pascal@15802 | 45 } |