Created
August 7, 2012 20:23
-
-
Save hasufell/3289003 to your computer and use it in GitHub Desktop.
tmw-20120727.ebuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2011 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
EAPI=4 | |
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/mana" | |
S=${WORKDIR}/${MY_P} | |
src_prepare() { | |
epatch "${FILESDIR}"/${MY_PN}-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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment