forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmw-20130201.ebuild
60 lines (44 loc) · 1 KB
/
tmw-20130201.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
54
55
56
57
58
59
60
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils gnome2-utils games
MY_PN=${PN}-branding
MY_P=${MY_PN}-${PV}
DESCRIPTION="Branding for the Mana client for server.themanaworld.org"
HOMEPAGE="http://themanaworld.org/"
SRC_URI="mirror://sourceforge/themanaworld/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="games-rpg/manaplus"
S=${WORKDIR}/${MY_P}
src_prepare() {
epatch "${FILESDIR}"/${MY_P}-gentoo.patch
sed -i \
-e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
${PN} ${PN}.desktop \
|| die "sed failed"
}
src_install() {
dogamesbin ${PN}
insinto "${GAMES_DATADIR}/${PN}/"
doins ${PN}.mana
doins -r data/
domenu ${PN}.desktop
doicon -s 32 data/icons/${PN}.xpm
doicon data/icons/${PN}.png
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}