summaryrefslogtreecommitdiff
blob: c543eaaf1e2c0d4e952b5b137057474c14518324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/unreal-tournament-infiltration/unreal-tournament-infiltration-286.ebuild,v 1.2 2003/09/09 23:44:19 msterret Exp $

inherit games

INFFILE="Infiltration${PV}-MAN.zip"
INFMAPS="INFMapPacks123FULL-MAN.zip"

DESCRIPTION="Realistic mod for Unreal Tournament"
HOMEPAGE="http://infiltration.sentrystudios.net/"
SRC_URI="ftp://inffilemirror.theonlinegaming.com/INF286/Full-Zipped/${INFFILE}
	ftp://inffilemirror.theonlinegaming.com/MapPacks/MapPackFull123/Full-Zipped/${INFMAPS}"

LICENSE="as-is"
SLOT="0"
KEYWORDS="x86"

DEPEND="app-arch/unzip
	|| ( games-fps/unreal-tournament games-fps/unreal-tournament-goty )"

S=${WORKDIR}

src_install() {
	local dir=${GAMES_PREFIX_OPT}/unreal-tournament
	dodir ${dir}

	mv ${S}/* ${D}/${dir}/

	insinto ${dir}/System
	[ -e ${dir}/System/Infiltration.ini ] \
		&& newins ${FILESDIR}/Infiltration.ini Infiltration.ini.sample \
		|| doins ${FILESDIR}/Infiltration.ini

	dogamesbin ${FILESDIR}/ut-inf

	prepgamesdirs
}

pkg_postinst() {
	touch ${GAMES_PREFIX_OPT}/unreal-tournament/System/Infiltration.ini
	games_pkg_postinst
}