blob: cc3b6aef129c269770653227dcd5eb6bd63730f9 (
plain) (
blame)
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-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
inherit eutils unpacker games
DESCRIPTION="Military simulations by the U.S. Army to provide insights on soldiering"
HOMEPAGE="http://www.americasarmy.com/"
SRC_URI="mirror://sourceforge/distrobuild/${PN}${PV}-linux.run"
LICENSE="Army-EULA"
SLOT="0"
KEYWORDS="amd64 x86"
RESTRICT="mirror strip"
IUSE="opengl"
RDEPEND="sys-libs/glibc"
S=${WORKDIR}
pkg_setup() {
games_pkg_setup
einfo "The installed game takes about 1.6GB of space when installed and"
einfo "2.4GB of space in ${PORTAGE_TMPDIR} to build!"
echo
}
src_unpack() {
unpack_makeself ${PN}${PV}-linux.run || die "unpacking game"
unpack ./setupstuff.tar.gz
}
src_install() {
local dir=${GAMES_PREFIX_OPT}/${PN}
local Ddir=${D}/${dir}
einfo "This will take a while... go get a pizza or something."
dodir "${dir}"
tar -jxf armyops${PV}.tar.bz2 -C "${Ddir}"/ || die "armyops untar failed"
tar -jxf binaries.tar.bz2 -C "${Ddir}"/ || die "binaries untar failed"
dodoc README.linux
insinto "${dir}"
doins ArmyOps.xpm README.linux ArmyOps${PV}_EULA.txt || die "doins failed"
newicon ArmyOps.xpm armyops.xpm || die "newicon failed"
exeinto "${dir}"
doexe bin/armyops || die "doexe failed"
fperms ug+x "${dir}"/System/pb/pbweb.x86
if use opengl ; then
games_make_wrapper armyops ./armyops "${dir}" "${dir}"
make_desktop_entry armyops "America's Army" armyops.xpm
fi
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
if use opengl ; then
elog "To play the game, run: armyops"
echo
fi
}
|