SUMMARY="A free 2D Zelda fangame"
DESCRIPTION="The Legend of Zelda: Mystery of Solarus DX is set to be a direct \
sequel to The Legend of Zelda: A Link to the Past on the SNES, using the same \
graphics and game mechanisms. Zelda Mystery of Solarus DX is the first game \
made with the Solarus engine and in fact, Solarus was primarily designed for this game."
HOMEPAGE="http://www.zelda-solarus.com/"
COPYRIGHT="2011 Nintendo"
LICENSE="GNU GPL v3
Attribution-ShareAlike 3.0 Unported"
REVISION="1"
SOURCE_URI="http://www.zelda-solarus.com/downloads/zsxd/zsxd-$portVersion.tar.gz"
CHECKSUM_SHA256="b06e9d6ee9cb48146d2df56e258498ce4ab4b3cf3c38436ecea697eb82a1ffeb"

ARCHITECTURES="any"
DISABLE_SOURCE_PACKAGE="yes"

PROVIDES="
	zsxd = $portVersion
	cmd:zsxd
	"
REQUIRES="
	cmd:solarus_run
	"

INSTALL()
{
	mkdir -p $dataDir/solarus/zsxd
	cp -R data $dataDir/solarus/zsxd/
	
	mkdir -p $binDir
	cat > $binDir/zsxd << EOF
#!/bin/sh
solarus-run $dataDir/solarus/zsxd
EOF
	chmod 755 $binDir/zsxd
}
