diff options
author | eroen <eroen@occam.eroen.eu> | 2015-02-01 02:25:48 +0100 |
---|---|---|
committer | eroen <eroen@occam.eroen.eu> | 2015-02-01 03:44:26 +0100 |
commit | c57a33f4fcbcf8ca104d26f42d7c03b7f03eca85 (patch) | |
tree | 015e29290af0042e94507b9efc51e4e95f124fd7 /games-rpg/farsky | |
parent | farsky - new ebuild (diff) | |
download | eroen-c57a33f4fcbcf8ca104d26f42d7c03b7f03eca85.tar.gz eroen-c57a33f4fcbcf8ca104d26f42d7c03b7f03eca85.tar.bz2 eroen-c57a33f4fcbcf8ca104d26f42d7c03b7f03eca85.zip |
farsky - add icon
Diffstat (limited to 'games-rpg/farsky')
-rw-r--r-- | games-rpg/farsky/farsky-201404252028.ebuild | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/games-rpg/farsky/farsky-201404252028.ebuild b/games-rpg/farsky/farsky-201404252028.ebuild index c579e6f..062d0a5 100644 --- a/games-rpg/farsky/farsky-201404252028.ebuild +++ b/games-rpg/farsky/farsky-201404252028.ebuild @@ -4,7 +4,7 @@ EAPI=5 -inherit eutils java-pkg-2 games +inherit eutils gnome2-utils java-pkg-2 games MY_PN=FarSky @@ -56,6 +56,9 @@ src_unpack() { unzip -qo "$S"/FarSky/FarSky.jar || die "failed to unzip FarSky.jar" ( set +x ; while true ; do echo n || break ; done ) | \ unzip -qo "$S"/installFiles/libraries.zip || die "failed to unzip libraries.zip" + # for icon + ( set +x ; while true ; do echo n || break ; done ) | \ + unzip -qo "$S"/installFiles/farsky.jar res/textures/gui/icon.png || die "failed to unzip libraries.zip" } src_prepare() { @@ -86,11 +89,22 @@ src_install() { --pkg_args "-param -path:\${HOME}/.FarSky/ -logPath:\${HOME}/.FarSky/log" \ --jar farsky.jar \ --main game.Main - make_desktop_entry $PN FarSky + newicon res/textures/gui/icon.png ${PN}.png + make_desktop_entry $PN FarSky ${PN} prepgamesdirs } pkg_preinst() { + gnome2_icon_savelist java-pkg-2_pkg_preinst games_pkg_preinst } + +pkg_postinst() { + gnome2_icon_cache_update + games_pkg_postinst +} + +pkg_postrm() { + gnome2_icon_cache_update +} |