blob: 4d7a04e6451f573c755a37c2791a9a028be90150 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
inherit unpacker games
DESCRIPTION="Guide a hero safely through various traps, clear obstructions from his path, and shift his surroundings to create a safe passage to the cozy bed."
HOMEPAGE="http://www.11bitstudios.com/games/12/sleepwalker-s-journey"
# Is it non-HiB distfile?
SRC_URI="Sleepwalker-lin_1371139237-Installer"
RESTRICT="fetch strip"
LICENSE="as-is"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="multilib"
DEPEND=""
RDEPEND="
x86? (
media-libs/openal
x11-libs/libdrm
x11-libs/libX11
x11-libs/libXau
x11-libs/libxcb
x11-libs/libXdamage
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXxf86vm
)
amd64? (
app-emulation/emul-linux-x86-xlibs
app-emulation/emul-linux-x86-opengl
app-emulation/emul-linux-x86-sdl
)
virtual/opengl
app-arch/unzip
"
REQUIRED_USE="amd64? ( multilib )"
S="${WORKDIR}"
src_unpack() {
unpack_zip "${A}"
}
pkg_nofetch() {
ewarn
ewarn "Put ${A} (downloaded from Humble Store) to ${DISTDIR}, please"
ewarn
}
src_install() {
cd "${S}/data"
local dir="${GAMES_PREFIX_OPT}/${PN}"
newicon "icon.png" "${PN}.png"
make_desktop_entry "${PN}" "Sleepwalker" "${PN}"
games_make_wrapper "${PN}" "./Sleepwalker" "${dir}"
dodoc README
exeinto "${dir}"
doexe "Sleepwalker"
rm "libopenal.so.1" \
"icon.png" \
"README" \
"Sleepwalker" \
"Copyright license Lua" \
"Copyright license OggVorbis" \
"Copyright license Theora" \
"Copyright license Xpm"
insinto "${dir}"
doins -r .
prepgamesdirs
}
|