forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
color-lines-0.6.ebuild
50 lines (37 loc) · 1.02 KB
/
color-lines-0.6.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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils games
DESCRIPTION="Color lines game written with SDL with bonus features"
HOMEPAGE="https://color-lines.googlecode.com/"
SRC_URI="https://color-lines.googlecode.com/files/lines_${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux"
RDEPEND="media-libs/libsdl[X,sound,video]
media-libs/sdl-image[png]
media-libs/sdl-mixer[wav,mod]"
DEPEND="${RDEPEND}"
S="${WORKDIR}/lines-${PV}"
src_prepare() {
epatch "${FILESDIR}/${P}-Makefile.patch"
sed -i \
-e '/^Encoding/d' \
-e '/^Version/d' \
-e '/^Icon/s/.png//' \
color-lines.desktop.in || die 'sed on color-lines.desktop.in failed'
epatch_user
}
src_compile() {
emake BINDIR="${EPREFIX}${GAMES_BINDIR}/" GAMEDATADIR="${EPREFIX}${GAMES_DATADIR}/${PN}/"
}
src_install() {
insinto "${GAMES_DATADIR}/${PN}"
doins -r gfx sounds
domenu ${PN}.desktop
doicon icon/${PN}.png
dodoc ChangeLog
dogamesbin ${PN}
prepgamesdirs
}