summaryrefslogtreecommitdiff
blob: 8b1d1e2ed6b9152aa0f0c4cefbb14a59896b0367 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

inherit games

TS=1371673270
MY_PN=StealthBastardDeluxe

DESCRIPTION="The fast-paced, nail-biting antidote to tippy-toed sneaking simulators that the world had so desperately been craving."
HOMEPAGE="http://www.stealthbastard.com/"
SRC_URI="${MY_PN}_${PV}_Linux_${TS}.tar.gz"

LICENSE="as-is"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""

RESTRICT="fetch strip"

DEPEND=""
RDEPEND="
	${DEPEND}
	x86? (
		dev-libs/openssl
		media-libs/openal
		sys-libs/zlib
		x11-libs/libX11
		x11-libs/libXxf86vm
	)
	amd64? (
		app-emulation/emul-linux-x86-baselibs
		app-emulation/emul-linux-x86-sdl
		app-emulation/emul-linux-x86-xlibs
	)
"

S="${WORKDIR}/${MY_PN}"
GAMEDIR="${GAMES_PREFIX_OPT}/${PN}"

pkg_nofetch() {
	einfo "Please download ${A}"
	einfo "from your personal page in Humble Indie Bundle site"
	einfo "(http://www.humblebundle.com)"
	einfo "and place it to ${DESTDIR}"
}

src_install() {
	insinto "${GAMEDIR}"
	doins -r assets
	exeinto "${GAMEDIR}"
	doexe "${MY_PN}"
	games_make_wrapper "${PN}" "./${MY_PN}" "${GAMEDIR}"
	newicon "assets/icon.png" "${PN}.png"
	make_desktop_entry "${PN}" "${MY_PN}" "${PN}"

	prepgamesdirs
}