# Copyright 2004-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # v 0.2 # $Header: $ inherit eutils games DESCRIPTION="Stargus is a Starcraft Mod that allows you to play Starcraft with the Stratagus engine." HOMEPAGE="http://stargus.sf.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz http://www.gentoo.sk/files/stargus.png" LICENSE="GPL" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="media-libs/libpng sys-libs/zlib" RDEPEND="=games-engines/stratagus-2.2.3*" dir=${GAMES_DATADIR}/${PN} src_unpack() { cdrom_get_cds install.exe unpack ${A/stargus.png} } src_install() { # need this? dobin startool || die "dobin startool failed" cd "${S}" ./startool ${CDROM_ROOT} ${D}/${dir}/data \ || die "Failed to extract data" insinto "${dir}/data" doins -r scripts || die "doins scripts failed" insinto "${dir}/data/graphics/tilesets" doins contrib/fog.png || die "doins scripts failed" games_make_wrapper stargus "stratagus -d \"${dir}/data\"" \ "${GAMES_BINDIR}" einfo "" einfo "Stargus.png isn't official icon." einfo "This software is in alpha state!" einfo "" doicon "${DISTDIR}"/stargus.png || die "doicon failed" make_desktop_entry ${PN} "Stargus" stargus.png prepgamesdirs # # old stuf # #local dir="${GAMES_DATADIR}/${PN}" #dodir "${dir}" #cd "${S}" #./startool ${CDROM_ROOT} ${D}/${dir}/data \ #|| die "Failed to extract data" #cp -r scripts ${D}/${dir}/data #cp contrib/fog.png ${D}/${dir}/data/graphics/tilesets #games_make_wrapper stargus "stratagus -d \"${dir}/data\"" # "${GAMES_BINDIR}" #prepgamesdirs #einfo "Stargus.png isn't official icon." #einfo "This software is in alpha state!" #doicon "${DISTDIR}"/stargus.png #make_desktop_entry stargus Stargus einfo "" einfo "Game data from CDROM are installed to ${dir}/data." einfo "" einfo "To reinstall datafiles from CDROM run :" einfo " startool PATH_TO_CDROM ${dir}/data " einfo "" }