blob: d3711fa89d27ea6e322e44a7e619a9015a4a680c (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit eutils games
DESCRIPTION="Vertically-scrolling asteroids-style shoot-em-up"
HOMEPAGE="http://maxfighter.musgit.com/"
SRC_URI="http://source.musgit.com/files/${PN}_${PV}.tar.bz2"
LICENSE="CCPL-Attribution-ShareAlike-NonCommercial-2.5
GPL-2"
KEYWORDS="~x86"
IUSE=""
SLOT="0"
RDEPEND="media-libs/mysdl"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${PN}_${PV}
release=${S}/dist/linux/${PN}
src_compile() {
scons dist=1 || die "scons failed"
}
src_install() {
local dir=${GAMES_DATADIR}/${PN}
local state_dir=${GAMES_STATEDIR}/${PN}
dogamesbin "${release}/${PN}" || die "dogamesbin failed"
insinto "${dir}"
doins -r "${release}"/resources/* || die "doins resources failed"
dohtml -r "${release}"/docs/* || die "dohtml docs failed"
# Use a suitable icon from the many images available
newicon "${release}"/resources/images/player_1_0006.png ${PN}.png \
|| die "newicon failed"
make_desktop_entry ${PN} "Max Fighter" ${PN}.png
# Shared highscores file
dodir "${state_dir}"
touch "${D}/${state_dir}"/highscores.xml || die "touch failed"
fperms g+w "${state_dir}"/highscores.xml || die "fperms failed"
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
}
|