mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user