blob: a40786104f41a0a58945ba79a844ad3cb3c103f1 (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop
DESCRIPTION="space soccer ball shooting missiles around"
HOMEPAGE="http://www-graphics.stanford.edu/courses/cs248-videogame-competition/cs248-05/"
SRC_URI="http://www-graphics.stanford.edu/courses/cs248-videogame-competition/cs248-05/theDeadlySoccerBall.tar.gz"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
DEPEND="media-libs/libsdl
media-libs/mesa"
S="${WORKDIR}"
PATCHES=( "${FILESDIR}/${P}.patch" )
src_prepare() {
default
sed -i \
-e 's:"\(Sounds/[^"]*\)":"/usr/share/'${PN}'/\1":g' -i src/World.cpp \
-e 's:"\(Textures/[^"]*\)":"/usr/share/'${PN}'/\1":g' -i src/World.cpp \
|| die "sed failed"
sed -s \
-e 's/\theDeadlySoccerBall/deadlysoccerball/g' -i src/Makefile \
|| die "sed failed"
}
src_install() {
dobin theDeadlySoccerBall
insinto "/usr/share/${PN}"
doins -r Sounds Textures || die
doicon "${FILESDIR}/${PN}.png"
make_desktop_entry theDeadlySoccerBall ${PN}
dodoc README.txt
}
|