blob: c1114347613f4e7fa0dbd3c4d19f4ef8fe2f8c71 (
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
|
# 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\'
eapply_user
}
src_install() {
local dir="/opt/${P}"
insinto "${dir}"
doins InfamousMachine.vmoptions
doins infamous_machine.jar
dodir "${dir}/.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
}
|