blob: 208474c87b0c5c523c9db52aabf927e0abc55701 (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/brutal-legend/brutal-legend-20130615.ebuild,v 1.1 2013/11/24 23:29:34 hasufell Exp $
# TODO: unbundle libsdl-2
EAPI=5
inherit eutils unpacker gnome2-utils games
TIMESTAMP=${PV:0:4}-${PV:4:2}-${PV:6:2}
DESCRIPTION="Crush skulls, ravage the road in the Deuce, and unleash the power of Heavy Metal to reign down fire from the sky"
HOMEPAGE="https://www.ea.com/de/brutal-legend"
SRC_URI="BrutalLegend-Linux-${TIMESTAMP}-setup.bin"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="bindist fetch splitdebug"
MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${MYGAMEDIR#/}/lib/*
${MYGAMEDIR#/}/Buddha.bin.x86"
RDEPEND="
amd64? (
|| (
(
app-emulation/emul-linux-x86-baselibs
app-emulation/emul-linux-x86-opengl
app-emulation/emul-linux-x86-xlibs
)
(
sys-libs/zlib[abi_x86_32]
virtual/glu[abi_x86_32]
virtual/opengl[abi_x86_32]
x11-libs/libX11[abi_x86_32]
x11-libs/libXau[abi_x86_32]
x11-libs/libXdmcp[abi_x86_32]
x11-libs/libXext[abi_x86_32]
x11-libs/libxcb[abi_x86_32]
)
)
)
x86? (
sys-libs/zlib
virtual/glu
virtual/opengl
x11-libs/libX11
x11-libs/libXau
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libxcb
)"
DEPEND="app-arch/unzip"
S=${WORKDIR}/data
pkg_nofetch() {
einfo "Please buy & download ${SRC_URI} from:"
einfo " https://www.humblebundle.com/store"
einfo "and move it to ${DISTDIR}"
}
src_unpack() {
unpack_zip ${A}
}
src_install() {
newicon -s 256 Buddha.png ${PN}.png
games_make_wrapper ${PN} "./Buddha.bin.x86" "${MYGAMEDIR}" "${MYGAMEDIR}/lib"
make_desktop_entry ${PN}
dodir "${MYGAMEDIR}"
# this is over 9000!!!! ...eh, 8GB data
mv * "${D%/}/${MYGAMEDIR}" || die
fperms +x "${MYGAMEDIR}/Buddha.bin.x86"
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
|