# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-fps/quake1-movies/quake1-movies-0.ebuild,v 1.3 2005/09/26 18:05:31 wolf31o2 Exp $ inherit eutils games DESCRIPTION="a collection of all the greatest Quake movies" HOMEPAGE="http://www.planetquake.com/cineplex/history.html" SRC_URI="http://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/cineplex/camper.zip http://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/cineplex/rgb.zip http://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/cineplex/rgb2.zip http://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/cineplex/rgb3_preview.zip http://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/cineplex/ta2.zip http://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/cineplex/op_bays.zip http://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/cineplex/artifact.zip http://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/blah/blahmov.zip http://ftp.se.kde.org/pub/pc/games/idgames2/planetquake/blah/blahouts.zip " LICENSE="as-is" SLOT="0" KEYWORDS="amd64 x86" IUSE="" RDEPEND="" DEPEND="app-arch/unzip" S=${WORKDIR} myunpack() { echo ">>> Unpacking $1 to ${PWD}" unzip -qoLL "${DISTDIR}"/$1 || die "unpacking $1 failed" } src_unpack() { cd ${S} einfo "Diary of a Camper ..." mkdir id1 cd id1 myunpack camper.zip mv movies.txt movies-camper.txt cd ${S} einfo "Ranger Gone Bad ..." cd id1 myunpack rgb.zip mv movies.txt movies-rgb.txt myunpack rgb2.zip mv movies.txt movies-rgb2.txt cd .. myunpack rgb3_preview.zip rm *.bat mkdir ta2 cd ta2 myunpack ta2.zip cd ${S} einfo "Operation Bayshield ..." mkdir op_bays cd op_bays myunpack op_bays.zip cd ${S} einfo "The Artifact ..." mkdir artifact cd artifact myunpack artifact.zip cd ${S} einfo "Blahbalicious ..." myunpack blahmov.zip rm *.bat cd blah myunpack blahouts.zip cd ${S} edos2unix $(find . -name '*.txt' -o -name '*.cfg') } src_install() { local dir=${GAMES_DATADIR}/quake-data dodir "${dir}" insinto "${dir}" doins -r * || die "doins" prepgamesdirs }