forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
atakks-1.0.ebuild
46 lines (37 loc) · 931 Bytes
/
atakks-1.0.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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils games
MY_P=${P/-/_}
DESCRIPTION="A clone of Ataxx"
HOMEPAGE="http://team.gcu-squad.org/~fab"
# no version upstream
#SRC_URI="http://team.gcu-squad.org/~fab/down/${PN}.tgz"
SRC_URI="mirror://gentoo/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
DEPEND="media-libs/libsdl:0"
RDEPEND=${DEPEND}
S=${WORKDIR}/${MY_P}
src_prepare() {
# Modify game data paths
sed -i \
-e "s:SDL_LoadBMP(\":SDL_LoadBMP(\"${GAMES_DATADIR}/${PN}/:" \
main.c || die
epatch "${FILESDIR}"/${PV}-warnings.patch \
"${FILESDIR}"/${P}-as-needed.patch
}
src_compile() {
emake E_CFLAGS="${CFLAGS}"
}
src_install() {
dogamesbin ${PN}
insinto "${GAMES_DATADIR}"/${PN}
doins *bmp
newicon icon.bmp ${PN}.bmp
make_desktop_entry ${PN} Atakks /usr/share/pixmaps/${PN}.bmp
prepgamesdirs
}