summaryrefslogtreecommitdiff
blob: b5abede7b55f7d04f25ff1bb8b337cb6cbee9dbc (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/spacetripper-demo/spacetripper-demo-1.ebuild,v 1.5 2005/08/12 05:15:58 mr_bones_ Exp $

inherit eutils games

MY_P="spacetripperdemo"
DESCRIPTION="hardcore arcade shoot-em-up"
HOMEPAGE="http://www.pompom.org.uk/"
SRC_URI="http://www.btinternet.com/%7Ebongpig/${MY_P}.sh"

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

dir=${GAMES_PREFIX_OPT}/${PN}
Ddir=${D}/${dir}

S=${WORKDIR}

src_unpack() {
	check_license
	unpack_makeself
}

src_install() {
	exeinto "${dir}"
	doexe bin/x86/*
	sed -i \
		-e "s:XYZZY:${dir}:" "${Ddir}/${MY_P}" \
		|| die "sed failed"

	insinto "${dir}"
	doins -r preview run styles || die "doins failed"
	doins README license.txt icon.xpm

	dodir "${GAMES_BINDIR}"
	dosym "${dir}/${MY_P}" "${GAMES_BINDIR}/${PN}"

	prepgamesdirs
}