wok annotate 8086tiny/receipt @ rev 15823
bazaar-tools, transmission: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 24 14:19:06 2014 +0000 (2014-01-24) |
parents | c324508a40bf |
children | d0d74920c618 |
rev | line source |
---|---|
pascal@15802 | 1 # SliTaz package receipt. |
pascal@15802 | 2 |
pascal@15802 | 3 PACKAGE="8086tiny" |
pascal@15823 | 4 VERSION="1.02" |
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@15802 | 19 sed 's/#OPTS/OPTS/' < Makefile > Makefile.nographics |
pascal@15802 | 20 make -f Makefile.nographics CC=gcc && |
pascal@15802 | 21 mv 8086tiny 8086tiny.nographics && |
pascal@15802 | 22 make CC=gcc && |
pascal@15802 | 23 nasm bios_source/bios.asm |
pascal@15802 | 24 } |
pascal@15802 | 25 |
pascal@15802 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15802 | 27 genpkg_rules() |
pascal@15802 | 28 { |
pascal@15802 | 29 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny |
pascal@15802 | 30 cp -a $src/8086tiny $fs/usr/bin |
pascal@15802 | 31 cp -a $src/8086tiny.nographics $fs/usr/bin |
pascal@15802 | 32 cp -a $src/bios_source/bios $fs/usr/share/8086tiny |
pascal@15804 | 33 cat > $fs/usr/bin//8086tiny.sh <<EOT |
pascal@15802 | 34 #!/bin/sh |
pascal@15802 | 35 |
pascal@15823 | 36 if [ ! -e "\$1" ]; then |
pascal@15823 | 37 echo "Usage: \$0 fd_image [hd_image]" |
pascal@15823 | 38 else |
pascal@15823 | 39 clear |
pascal@15823 | 40 stty cbreak raw -echo min 0 |
pascal@15823 | 41 \${TINY8086:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "\$@" |
pascal@15823 | 42 stty cooked echo |
pascal@15823 | 43 fi |
pascal@15802 | 44 EOT |
pascal@15804 | 45 chmod 755 $fs/usr/bin/8086tiny.sh |
pascal@15802 | 46 } |