# Template file for 'cavestory'
pkgname=cavestory
version=1.01
revision=3
wrksrc=linuxDoukutsu-${version}
only_for_archs="i686"
lib32mode=full
repository=nonfree
short_desc="A Japanese side-scrolling platformer game"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="Proprietary"
homepage="http://www.cavestory.org/"
distfiles="http://www.cavestory.org/downloads/linuxdoukutsu-${version}.tar.bz2"
checksum=76466fc1b1901ce25e301a4ec8450aced806c9d499d66707d6f7b38efebc24c1

do_install(){
	vmkdir usr/share/cavestory
	vcopy Config.dat usr/share/cavestory
	vcopy data usr/share/cavestory
	vdoc doc/readme.txt
	vdoc doc/configfileformat.txt
	vcopy doukutsu.bin usr/share/cavestory
	vbin ${FILESDIR}/cavestory
	vinstall ${FILESDIR}/cavestory.desktop 644 usr/share/applications/
	vinstall ${FILESDIR}/cavestory.png 644 usr/share/pixmaps/
}
