summaryrefslogtreecommitdiff
blob: 87fb3d4c9015fa77589b7fa318f670498dae35a6 (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
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop wrapper

TIMESTAMP_x86="1346296515"
TIMESTAMP_amd64="1346776333"

DESCRIPTION="Defend and control the field using a diverse selection of upgradeable towers."
HOMEPAGE="http://subatomicstudios.com/games/fieldrunners/"

SLOT="0"
LICENSE="all-rights-reserved"
KEYWORDS="~amd64 ~x86"
RESTRICT="fetch strip"

SRC_URI="
	x86? ( ${P}-32bit-${TIMESTAMP_x86}.tar.gz )
	amd64? ( ${PN}-linux-${PV}-64bit-${TIMESTAMP_amd64}.tar.gz )
"

RDEPEND="
	media-libs/alsa-lib
	media-libs/freeglut
	media-libs/libogg
	media-libs/libvorbis
	virtual/opengl
	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/libXi
	x11-libs/libXrandr
	x11-libs/libXrender
	x11-libs/libXxf86vm

"
DEPEND="${RDEPEND}"

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

MY_PN="${PN/f/F}"

DOCS=( README )

pkg_nofetch() {
	ewarn
	ewarn "Please, fetch the package from HB and place it to ${PORTAGE_ACTUAL_DISTDIR}/${A}"
	ewarn
}

src_install() {
	local dir="/opt/${PN}"
	local arch;
	use amd64 && arch="x86_64" || arch="x86"

	insinto "${dir}"
	doins -r "${PN}/Data"

	exeinto "${dir}"
	doexe "${PN}/${MY_PN}"

	make_wrapper "${PN}" "./${MY_PN}" "${dir}"
	doicon "${FILESDIR}/${PN}.png" || die
	make_desktop_entry "${PN}" "${MY_PN}"
}