1 |
commit: fbdc20ef364c992ce86fef25e06bb359cac977fa |
2 |
Author: Jiayi Zhao <jeff.no.zhao <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat May 27 15:18:41 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 1 07:09:47 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbdc20ef |
7 |
|
8 |
games-rpg/runescape-launcher: version bump 2.2.4 |
9 |
|
10 |
Gentoo-Bug: 617170 |
11 |
Package-Manager: Portage-2.3.5, Repoman-2.3.1 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/4779 |
13 |
|
14 |
games-rpg/runescape-launcher/Manifest | 2 +- |
15 |
.../runescape-launcher-2.2.4.ebuild | 83 ++++++++++++++++++++++ |
16 |
2 files changed, 84 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/games-rpg/runescape-launcher/Manifest b/games-rpg/runescape-launcher/Manifest |
19 |
index a89d5ecbfb3..40318fd7dc8 100644 |
20 |
--- a/games-rpg/runescape-launcher/Manifest |
21 |
+++ b/games-rpg/runescape-launcher/Manifest |
22 |
@@ -1 +1 @@ |
23 |
-DIST runescape-launcher_2.2.3_amd64.deb 2065806 SHA256 facf1c55b81b37b7c4a2f41bb5286066e86f68b37d17109aa2d3c0fcec597d99 SHA512 6ddda8fa195486361099f056ce1301d85c8ebcfa75dff6a3f93349d9f6883f3788b7732aef42e94a55f2a1f915da30d164398c99317f982e591a2a1f95a7702f WHIRLPOOL 64ac1755ae697116aede2cda48feaeb7fab7c8177a64f96d6aa87f20cab8d100e742a7e5dd1e97c3b9be6aec5ee1b2a4675a2224d1bab33e6085c7519c2f904c |
24 |
+DIST runescape-launcher_2.2.4_amd64.deb 3015162 SHA256 3aa5cb2189c8ee0f2c95da1229b3fc30cacb1209ff794afc77ddb218684386df SHA512 981dbee9ce795f6a1d5bc0fb235b7f0325378e8d1d5a91b2fbe80d08954fb9818d8f5ddd8545dfb2d1246b21bedfac041d73e84cda1c38e4a3cfa076e128f408 WHIRLPOOL b7a10f33557030bbdeae159c5302d3302dde829f29d6a362a3b2306e158cba9ff7617546ed3999ae8d226546810b299eff2ccc2dc938959ab8cd4e7d4fe25515 |
25 |
|
26 |
diff --git a/games-rpg/runescape-launcher/runescape-launcher-2.2.4.ebuild b/games-rpg/runescape-launcher/runescape-launcher-2.2.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..b1049fa39ee |
29 |
--- /dev/null |
30 |
+++ b/games-rpg/runescape-launcher/runescape-launcher-2.2.4.ebuild |
31 |
@@ -0,0 +1,83 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit unpacker xdg gnome2-utils |
38 |
+ |
39 |
+DESCRIPTION="Official RuneScape NXT client launcher" |
40 |
+HOMEPAGE="http://www.runescape.com" |
41 |
+ |
42 |
+SRC_URI="http://content.runescape.com/downloads/ubuntu/pool/non-free/r/${PN}/${PN}_${PV}_amd64.deb" |
43 |
+ |
44 |
+QA_PREBUILT="/opt/runescape-launcher/runescape" |
45 |
+ |
46 |
+SLOT="0" |
47 |
+ |
48 |
+IUSE="kde" |
49 |
+ |
50 |
+KEYWORDS="-* ~amd64" |
51 |
+ |
52 |
+LICENSE="RuneScape-EULA" |
53 |
+RESTRICT="bindist mirror strip" |
54 |
+ |
55 |
+S="${WORKDIR}" |
56 |
+ |
57 |
+RDEPEND=" |
58 |
+ media-libs/libpng:1.2 |
59 |
+ >=media-libs/libsdl2-2.0.2 |
60 |
+ >=media-libs/glew-1.10.0:0/1.10 |
61 |
+ >=media-libs/libvorbis-1.3.2 |
62 |
+ >=net-libs/webkit-gtk-2.4.8:2 |
63 |
+ >=net-misc/curl-7.35.0 |
64 |
+" |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ # Fix path in launcher script |
68 |
+ sed -i "s:/usr/share/games/$PN:/opt/$PN:" usr/bin/$PN || die |
69 |
+ |
70 |
+ # Add missing trailing semicolon to .desktop MimeType entry |
71 |
+ sed -i '/MimeType=/{/;$/!{s/$/;/}}' usr/share/applications/${PN}.desktop || die |
72 |
+ |
73 |
+ # Fix path to launcher script |
74 |
+ sed -i "s:/usr/bin/$PN:/opt/bin/$PN:" usr/share/applications/${PN}.desktop || die |
75 |
+ |
76 |
+ xdg_src_prepare |
77 |
+ |
78 |
+ eapply_user |
79 |
+} |
80 |
+ |
81 |
+src_install() { |
82 |
+ into /opt |
83 |
+ dobin usr/bin/$PN |
84 |
+ dodoc usr/share/doc/$PN/* |
85 |
+ |
86 |
+ exeinto /opt/$PN |
87 |
+ doexe usr/share/games/$PN/runescape |
88 |
+ |
89 |
+ insinto /usr/share/applications |
90 |
+ doins usr/share/applications/${PN}.desktop |
91 |
+ |
92 |
+ insinto /usr/share/icons |
93 |
+ doins -r usr/share/icons/hicolor |
94 |
+ |
95 |
+ if use kde ; then |
96 |
+ insinto /usr/share/kde4 |
97 |
+ doins -r usr/share/kde4/services |
98 |
+ fi |
99 |
+} |
100 |
+ |
101 |
+pkg_preinst() { |
102 |
+ xdg_pkg_preinst |
103 |
+ gnome2_icon_savelist |
104 |
+} |
105 |
+ |
106 |
+pkg_postinst() { |
107 |
+ xdg_pkg_postinst |
108 |
+ gnome2_icon_cache_update |
109 |
+} |
110 |
+ |
111 |
+pkg_postrm() { |
112 |
+ xdg_pkg_postrm |
113 |
+ gnome2_icon_cache_update |
114 |
+} |