Line 0
Link Here
|
0 |
- |
1 |
# Copyright 1999-2018 Gentoo Foundation |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=5 |
5 |
|
6 |
MOD_NAME="Crossfire" |
7 |
MOD_DESC="Special Forces vs Terrorists" |
8 |
MOD_DIR="TOCrossfire" |
9 |
MOD_ICON="Help/icons/TOC_TERROR2.png" |
10 |
|
11 |
inherit games games-mods |
12 |
|
13 |
HOMEPAGE="http://to-crossfire.tnc-clan.de/" |
14 |
SRC_URI="ftp://files.tnc-clan.de/TOCrossfire/client/TOCrossfire_${PV}_full.zip" |
15 |
|
16 |
# See Help/EULA.txt |
17 |
LICENSE="free-noncomm" |
18 |
KEYWORDS="~amd64 ~x86" |
19 |
IUSE="dedicated opengl" |
20 |
|
21 |
src_unpack() { |
22 |
unpack ${A} |
23 |
# TOCinstall.tgz isn't gzipped in this particular release |
24 |
# rename it so unpack (tar) doesn't complain |
25 |
mv ./TOCinstall.tgz ./TOCinstall.tar |
26 |
unpack ./TOCinstall.tar |
27 |
} |
28 |
|
29 |
src_prepare() { |
30 |
rm -f *.{exe,reg,sh,tgz,txt} || die |
31 |
rm -rf TOCInstaller.app stuff || die |
32 |
cd ${MOD_DIR} || die |
33 |
rm -f *.{bat,exe} Help/*.{exe,zip} || die |
34 |
} |