summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2017-07-21 12:47:54 +0200
committerPacho Ramos <pacho@gentoo.org>2017-07-21 12:48:32 +0200
commit2c9f654a728aa1581270642b126ebc23b9f2c30d (patch)
tree6925fef64e44592cba5cb4e8170f712cf0eb35e8 /games-rpg/runescape-launcher
parentapp-backup/tsm: add a revdep-rebuild mask (diff)
downloadgentoo-2c9f654a728aa1581270642b126ebc23b9f2c30d.tar.gz
gentoo-2c9f654a728aa1581270642b126ebc23b9f2c30d.tar.bz2
gentoo-2c9f654a728aa1581270642b126ebc23b9f2c30d.zip
games-rpg/runescape-launcher: Looks to work without webkit-gtk:2 as also commented by ArchLinux users (#608610)
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'games-rpg/runescape-launcher')
-rw-r--r--games-rpg/runescape-launcher/runescape-launcher-2.2.4-r1.ebuild83
1 files changed, 83 insertions, 0 deletions
diff --git a/games-rpg/runescape-launcher/runescape-launcher-2.2.4-r1.ebuild b/games-rpg/runescape-launcher/runescape-launcher-2.2.4-r1.ebuild
new file mode 100644
index 000000000000..f84a65137ff4
--- /dev/null
+++ b/games-rpg/runescape-launcher/runescape-launcher-2.2.4-r1.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-misc/curl-7.35.0
+"
+DEPEND=""
+
+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
+}