summaryrefslogtreecommitdiff
path: root/games-rpg/runescape-launcher
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-rpg/runescape-launcher
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-rpg/runescape-launcher')
-rw-r--r--games-rpg/runescape-launcher/Manifest3
-rw-r--r--games-rpg/runescape-launcher/metadata.xml12
-rw-r--r--games-rpg/runescape-launcher/runescape-launcher-2.2.4-r2.ebuild83
3 files changed, 98 insertions, 0 deletions
diff --git a/games-rpg/runescape-launcher/Manifest b/games-rpg/runescape-launcher/Manifest
new file mode 100644
index 000000000000..4addaa5c6a13
--- /dev/null
+++ b/games-rpg/runescape-launcher/Manifest
@@ -0,0 +1,3 @@
+DIST runescape-launcher_2.2.4_amd64.deb 3014372 BLAKE2B 9ac215ff5f4b50a432fe14924d9bd7b8891d488cac05c6e2e657b97df68446e3d6a71c5c8330ff2ee995eddbfa63f885915a0c26413546845edeb219c2e56ac4 SHA512 47a3d757f2719474767ba95346f7e2d51a41612c8287656e78a958c68f62a26abcffc187b21d6cb7584bc94b2b5583d55dde4f27cfc18174e917864a7002c518
+EBUILD runescape-launcher-2.2.4-r2.ebuild 1598 BLAKE2B b95abd705ca66db473dd163822aecaaf36204fa8113d114fa05d0a5106df5b3f4f5791a17c23987625583ed1021dc3f3273f910e7ffbf6ad54231cf7129a176b SHA512 0bd6b875e864fe88081d6a6effa28421b2bd746e1f5162ede3b66a6e5b9e866234a74ef0cbbc6af0918207baec9fad6c473d8dc2077f362cd0da18a7ea72ce6c
+MISC metadata.xml 363 BLAKE2B 6ab4a2ef28cdbe1f2872fd2e354e1a16af1d6d23f78f8852c38737050c114adc33c916fb8ee1f2dc5d48460e2e76ab7c9e5fc16509f1afe01d259c0897289658 SHA512 c0b7f88e26968ff9cc1657152682755bdcdcd5dbe2490c54ca871f166e50cfff171b8a9a96c7fe09c97b39311c5be826ac5561d64a48152f0b4e4d1fa585e9df
diff --git a/games-rpg/runescape-launcher/metadata.xml b/games-rpg/runescape-launcher/metadata.xml
new file mode 100644
index 000000000000..d030cf30027d
--- /dev/null
+++ b/games-rpg/runescape-launcher/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>jscinoz@jscinoz.so</email>
+ <name>Jack Coulter</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-rpg/runescape-launcher/runescape-launcher-2.2.4-r2.ebuild b/games-rpg/runescape-launcher/runescape-launcher-2.2.4-r2.ebuild
new file mode 100644
index 000000000000..19f039b0e8f3
--- /dev/null
+++ b/games-rpg/runescape-launcher/runescape-launcher-2.2.4-r2.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2018 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
+ >=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
+}