blob: 62dcabb636678eb234f171d93c9840aebd617d13 (
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
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils
DESCRIPTION="A adventure about Kelvin, a crazy scientist, and a time machine."
HOMEPAGE="http://www.infamousmachine.com"
SRC_URI="infamousmachine_unix_1_0.sh.zip"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=">=virtual/jre-1.7:*
virtual/opengl
media-libs/openal
app-arch/p7zip"
RDEPEND="${DEPEND}"
RESTRICT="bindist fetch mirror strip"
S="${WORKDIR}"
pkg_nofetch() {
einfo "Please download ${SRC_URI}"
einfo "from your personal page in Humble Bundle site"
einfo "(http://www.humblebundle.com) and place it in ${DISTDIR}"
}
src_unpack() {
unpack ${A}
cd "${S}"
7z x infamousmachine_unix_1_0.sh
}
src_prepare() {
rm infamousmachine_unix_1_0.sh
rmdir '.install4j\'
}
src_install() {
local dir="/opt/${P}"
insinto "${dir}"
doins InfamousMachine.vmoptions
doins InfamousMachine.jar
doins .install4j
exeinto "${dir}"
doexe InfamousMachine
make_wrapper ${PN} ./InfamousMachine "${dir}" "${dir}"
newicon .install4j/InfamousMachine.png "${PN}"
make_desktop_entry ${PN} "Kelvin and the Infamous Machine" "${PN}" Game
}
|