forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pacmanarena-0.15.ebuild
53 lines (45 loc) · 1.16 KB
/
pacmanarena-0.15.ebuild
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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils autotools games
DESCRIPTION="3D Pacman clone with a few surprises. Rockets, bombs and explosions abound"
HOMEPAGE="http://pacmanarena.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/pacman-arena-${PV}.tar.bz2
mirror://sourceforge/${PN}/pacman-data-0.0.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~x86"
IUSE=""
RDEPEND="virtual/opengl
virtual/glu
media-libs/libsdl[sound]
media-libs/sdl-mixer[vorbis]
media-libs/sdl-net"
DEPEND="${RDEPEND}
app-arch/unzip"
S=${WORKDIR}/pacman
src_unpack() {
unpack pacman-arena-${PV}.tar.bz2
cd "${S}"
unpack pacman-data-0.0.zip
}
src_prepare() {
sed -i \
-e "/^CFLAGS/ s:pacman:${PN}:" \
-e '1i CC=@CC@' \
Makefile.in || die
sed -i \
-e '/CFLAGS/s:-g::' \
configure || die
epatch "${FILESDIR}"/${P}-underlink.patch
eautoreconf
}
src_install() {
newgamesbin pacman ${PN} || die
insinto "${GAMES_DATADIR}"/${PN}
doins -r gfx sfx || die
newicon gfx/pacman_arena1.tga ${PN}.tga
make_desktop_entry ${PN} "Pacman Arena" /usr/share/pixmaps/${PN}.tga
dodoc README
prepgamesdirs
}