diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2017-05-27 11:18:41 -0400 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-06-01 09:09:47 +0200 |
commit | fbdc20ef364c992ce86fef25e06bb359cac977fa (patch) | |
tree | e0387e876bfb5b2f27a57d82a02492b30f279683 /games-rpg | |
parent | dev-ruby/haml: cleanup (diff) | |
download | gentoo-fbdc20ef364c992ce86fef25e06bb359cac977fa.tar.gz gentoo-fbdc20ef364c992ce86fef25e06bb359cac977fa.tar.bz2 gentoo-fbdc20ef364c992ce86fef25e06bb359cac977fa.zip |
games-rpg/runescape-launcher: version bump 2.2.4
Gentoo-Bug: 617170
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/4779
Diffstat (limited to 'games-rpg')
-rw-r--r-- | games-rpg/runescape-launcher/Manifest | 2 | ||||
-rw-r--r-- | games-rpg/runescape-launcher/runescape-launcher-2.2.4.ebuild | 83 |
2 files changed, 84 insertions, 1 deletions
diff --git a/games-rpg/runescape-launcher/Manifest b/games-rpg/runescape-launcher/Manifest index a89d5ecbfb3b..40318fd7dc81 100644 --- a/games-rpg/runescape-launcher/Manifest +++ b/games-rpg/runescape-launcher/Manifest @@ -1 +1 @@ -DIST runescape-launcher_2.2.3_amd64.deb 2065806 SHA256 facf1c55b81b37b7c4a2f41bb5286066e86f68b37d17109aa2d3c0fcec597d99 SHA512 6ddda8fa195486361099f056ce1301d85c8ebcfa75dff6a3f93349d9f6883f3788b7732aef42e94a55f2a1f915da30d164398c99317f982e591a2a1f95a7702f WHIRLPOOL 64ac1755ae697116aede2cda48feaeb7fab7c8177a64f96d6aa87f20cab8d100e742a7e5dd1e97c3b9be6aec5ee1b2a4675a2224d1bab33e6085c7519c2f904c +DIST runescape-launcher_2.2.4_amd64.deb 3015162 SHA256 3aa5cb2189c8ee0f2c95da1229b3fc30cacb1209ff794afc77ddb218684386df SHA512 981dbee9ce795f6a1d5bc0fb235b7f0325378e8d1d5a91b2fbe80d08954fb9818d8f5ddd8545dfb2d1246b21bedfac041d73e84cda1c38e4a3cfa076e128f408 WHIRLPOOL b7a10f33557030bbdeae159c5302d3302dde829f29d6a362a3b2306e158cba9ff7617546ed3999ae8d226546810b299eff2ccc2dc938959ab8cd4e7d4fe25515 diff --git a/games-rpg/runescape-launcher/runescape-launcher-2.2.4.ebuild b/games-rpg/runescape-launcher/runescape-launcher-2.2.4.ebuild new file mode 100644 index 000000000000..b1049fa39eea --- /dev/null +++ b/games-rpg/runescape-launcher/runescape-launcher-2.2.4.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit unpacker xdg gnome2-utils + +DESCRIPTION="Official RuneScape NXT client launcher" +HOMEPAGE="http://www.runescape.com" + +SRC_URI="http://content.runescape.com/downloads/ubuntu/pool/non-free/r/${PN}/${PN}_${PV}_amd64.deb" + +QA_PREBUILT="/opt/runescape-launcher/runescape" + +SLOT="0" + +IUSE="kde" + +KEYWORDS="-* ~amd64" + +LICENSE="RuneScape-EULA" +RESTRICT="bindist mirror strip" + +S="${WORKDIR}" + +RDEPEND=" + media-libs/libpng:1.2 + >=media-libs/libsdl2-2.0.2 + >=media-libs/glew-1.10.0:0/1.10 + >=media-libs/libvorbis-1.3.2 + >=net-libs/webkit-gtk-2.4.8:2 + >=net-misc/curl-7.35.0 +" + +src_prepare() { + # Fix path in launcher script + sed -i "s:/usr/share/games/$PN:/opt/$PN:" usr/bin/$PN || die + + # Add missing trailing semicolon to .desktop MimeType entry + sed -i '/MimeType=/{/;$/!{s/$/;/}}' usr/share/applications/${PN}.desktop || die + + # Fix path to launcher script + sed -i "s:/usr/bin/$PN:/opt/bin/$PN:" usr/share/applications/${PN}.desktop || die + + xdg_src_prepare + + eapply_user +} + +src_install() { + into /opt + dobin usr/bin/$PN + dodoc usr/share/doc/$PN/* + + exeinto /opt/$PN + doexe usr/share/games/$PN/runescape + + insinto /usr/share/applications + doins usr/share/applications/${PN}.desktop + + insinto /usr/share/icons + doins -r usr/share/icons/hicolor + + if use kde ; then + insinto /usr/share/kde4 + doins -r usr/share/kde4/services + fi +} + +pkg_preinst() { + xdg_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_icon_cache_update +} |