# HG changeset patch # User Christopher Rogers # Date 1291901881 0 # Node ID eb1094e93b61b24f776d56c84dac745d766b70cc # Parent 46ac843d90d4b3470d51ae92562de061a6bd0efa Add linapple. An apple //e emulator. diff -r 46ac843d90d4 -r eb1094e93b61 linapple/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linapple/receipt Thu Dec 09 13:38:01 2010 +0000 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="linapple" +VERSION="1.1b" +CATEGORY="misc" +SHORT_DESC="Apple //e emulator." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-src$VERSION.tar.bz2" +WEB_SITE="http://linapple.sourceforge.net/" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" +BUILD_DEPENDS="gcc3 libsdl-dev zlib-dev" +DEPENDS="gcc-lib-base libsdl zlib" +CONFIG_FILES="/etc/linapple.conf" +TAGS="emulator apple2" + +# Rules to configure and make the package. +compile_rules() +{ + mv $PACKAGE-src_$VERSION $src 2> /dev/null + cd $src/src + grep -q /usr/share/apple2 Applewin.cpp || + sed -i 's|.*REGISTRY.*|\tchdir("/usr/share/apple2");\n&|' Applewin.cpp + make CC=g++-3 +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/apple2 $fs/usr/bin $fs/etc + cp $src/linapple $fs/usr/bin + cp $src/*.bmp $fs/usr/share/apple2 + cp $src/linapple.conf $fs/etc + ln -s /etc/linapple.conf $fs/usr/share/apple2 +}