# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit versionator games MY_PV="$(replace_all_version_separators _ ${PV})" DESCRIPTION="Flash MMORPG" HOMEPAGE="http://www.dofus.com/" SRC_URI="ftp://ftpdownload.ankama-games.com/ankamagam/Dofus_v${MY_PV}.zip" LICENSE="" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="app-arch/unzip" RDEPEND="net-www/netscape-flash" S=${WORKDIR} src_unpack() { unpack ${A} cd "${S}" rm *.txt } src_install() { insinto "${GAMES_DATADIR}"/${PN} doins -r * || die "doins failed" prepgamesdirs } pkg_postinst() { games_pkg_postinst einfo "Open this page in your browser to start the game" einfo "file://${GAMES_DATADIR}/${PN}/Dofus.html" }