blob: 32592b85977351a9f6c7eab5dc33f7178cad228b (
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 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit java-pkg-2
DESCRIPTION="Defeat the returning Titan horde in a series of epic ground battles."
HOMEPAGE="http://www.puppygames.net/revenge-of-the-titans"
SRC_URI="RevengeOfTheTitans-HIB-201512192.tar.gz"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=">=virtual/jre-1.7:*
virtual/opengl
media-libs/openal
dev-java/gson:2.6
dev-java/lwjgl"
RDEPEND="${DEPEND}"
RESTRICT="bindist fetch mirror strip"
S="${WORKDIR}/revenge"
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}"
}
JAVA_RM_FILES=(
gson.jar
lwjgl.jar
lwjgl_util.jar
libjinput-linux.so
libjinput-linux64.so
liblwjgl.so
liblwjgl64.so
7za_amd64
7za_i386
jvm.7z
)
src_prepare() {
epatch "${FILESDIR}/${PV}-launcher.patch"
default
}
src_install() {
local dir="/opt/${P}"
java-pkg_jarinto "${dir}"
java-pkg_dojar *.jar
java-pkg_sointo "${dir}"
java-pkg_doso libgdx.so libgdx64.so
exeinto "${dir}"
doexe revenge.sh || die "doexe"
make_wrapper ${PN} ./revenge.sh "${dir}" "${dir}"
doicon revenge.png
make_desktop_entry ${PN} "Revenge of the Titans" revenge Game
}
|