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

EAPI=4

inherit games

DESCRIPTION="Retro-styled open-world 2D puzzle platformer"
HOMEPAGE="http://thelettervsixtim.es/"
SRC_URI="${PN}_${PV}_Linux.tar.gz"

LICENSE="EULA"
SLOT="0"
KEYWORDS="~x86 ~amd64"
RESTRICT="fetch strip"
IUSE=""

DEPEND=""
RDEPEND="
		media-libs/sdl-mixer
		media-libs/sdl-image:0
		media-libs/libsdl:0
		"

S="${WORKDIR}/${PN}"

src_install() {
	local dir="${GAMES_PREFIX_OPT}/${PN}"
	if use amd64 ; then
		local exe="${PN}_64"
	else
		local exe="${PN}_32"
	fi

	insinto "${dir}"
	exeinto "${dir}"
	doexe "$exe"
	newicon -s 32 "data/icons/32_2.png" "${PN}.png"
	newicon -s 16 "data/icons/16.png" "${PN}.png"
	doins -r data

	games_make_wrapper "${PN}" "./${exe}" "${dir}"
	make_desktop_entry "${PN}" "${PN}" "${PN}"

	prepgamesdirs
}