summaryrefslogtreecommitdiff
blob: 8d5b2cc1014ad7e75c2c003f31cd8c73a205bb28 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
# /var/cvsroot/gentoo-x86/games-fps/ut2004-crossfire/ut2004-crossfire-1.9a.ebuild Exp $

MOD_NAME="Crossfire"
MOD_DESC="Special Forces vs Terrorists"
MOD_DIR="TOCrossfire"
MOD_BINS="crossfire"
MOD_ICON="Help/icons/TOC_TERROR2.png"

inherit games games-mods

OLD="TOCrossfire_beta_1.9_full"
UPD="TOCrossfire_beta_1.9a_update"
HOMEPAGE="http://www.to-crossfire.net/"
SRC_URI="ftp://mirror1.to-crossfire.net/client/${OLD}.zip
	ftp://mirror1.to-crossfire.net/client/${OLD}.zip
	ftp://toc.de-mirror.org/client/${OLD}.zip
	ftp://mirror1.to-crossfire.net/client/${UPD}.zip
	ftp://mirror1.to-crossfire.net/client/${UPD}.zip
	ftp://toc.de-mirror.org/client/${UPD}.zip"

# See Help/EULA.txt
LICENSE="free-noncomm"

KEYWORDS="~amd64 ~x86"

RDEPEND="${CATEGORY}/${GAME}"

src_unpack() {
	mkdir ${OLD} ${UPD}

	cd "${WORKDIR}/${OLD}" && unpack "${OLD}.zip" || die
	cd "${WORKDIR}/${UPD}" && unpack "${UPD}.zip" || die
	cd "${WORKDIR}"
	unpack ./${OLD}/TOCinstall.tgz ./${UPD}/TOCinstall.tgz

	cd "${MOD_DIR}" || die
	rm -f *.{bat,exe,md5} Help/*.{exe,zip}
}