summaryrefslogtreecommitdiff
blob: fc06988583c4f953670995bba4c7c6a361423349 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/americas-army/americas-army-170.ebuild,v 1.2 2003/11/01 16:30:05 mholzer Exp $

inherit games

DESCRIPTION="America's Army: Operations - military simulations by the U.S. Army to provide civilians with insights on soldiering"
HOMEPAGE="http://www.americasarmy.com/"
SRC_URI="ftp://ftp.stenstad.net/mirrors/icculus.org/armyops-lnx-${PV}.sh.bin
	http://guinness.devrandom.net/%7Eprimus/armyops-lnx-${PV}.sh.bin
	http://www.3ddownloads.com/linuxgames/americas_army/armyops-lnx-${PV}.sh.bin"
RESTRICT="nomirror"

LICENSE="Army-EULA"
SLOT="0"
KEYWORDS="x86"
RESTRICT="nostrip"
IUSE=""

DEPEND="virtual/glibc"
RDEPEND="media-sound/esound
	virtual/x11
	virtual/opengl"

S=${WORKDIR}

pkg_setup() {
	ewarn "The installed game takes about 850MB of space!"
	games_pkg_setup
}

src_unpack() {
	unpack_makeself || die
	tar -zxf setupstuff.tar.gz || die
}

src_install() {
	einfo "This will take a while ... go get a pizza or something"

	local dir=${GAMES_PREFIX_OPT}/${PN}
	dodir ${dir}

	tar -jxf armyops${PV}System.tar.bz2 -C ${D}/${dir}/ || die
	tar -jxf armyops${PV}data.tar.bz2 -C ${D}/${dir}/ || die

	dodoc README.linux
	insinto ${dir} ; doins ArmyOps.xpm
	insinto /usr/share/pixmaps ; doins ArmyOps.xpm
	exeinto ${dir} ; doexe bin/armyops

	sed -e "s:GENTOO_DIR:${dir}:" ${FILESDIR}/armyops > armyops
	dogamesbin armyops
	dosym ${dir}/armyops ${GAMES_BINDIR}/armyops

	prepgamesdirs
	make_desktop_entry armyops "AA: Operations" ArmyOps.xpm

}

pkg_postinst() {
	einfo "To play the game run:"
	einfo " armyops"

	games_pkg_postinst
}