From 5db3d3e7d6ee78cc0f6b38d036aa6de94e8c0702 Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Wed, 29 Apr 2020 17:58:35 +0200 Subject: [PATCH] games-action/minecraft-launcher: New ebuild Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alarig Le Lay + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + diff --git a/games-action/minecraft-launcher/minecraft-launcher-1.6.93.ebuild b/games-action/minecraft-launcher/minecraft-launcher-1.6.93.ebuild new file mode 100644 index 0000000..1aaef01 --- /dev/null +++ b/games-action/minecraft-launcher/minecraft-launcher-1.6.93.ebuild @@ -0,0 +1,34 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop java-pkg-2 xdg + +DESCRIPTION="An open-world game whose gameplay revolves around breaking and placing blocks" +HOMEPAGE="https://www.minecraft.net/" +SRC_URI="https://launcher.mojang.com/v1/objects/eabbff5ff8e21250e33670924a0c5e38f47c840b/launcher.jar -> ${P}.jar + https://launcher.mojang.com/download/minecraft-launcher.svg -> ${PN}-legacy.svg" + +KEYWORDS="~amd64 ~x86" +LICENSE="Mojang" +SLOT="1" + +RESTRICT="bindist mirror" + +RDEPEND="virtual/jre:1.8" + +S="${WORKDIR}" + +src_unpack() { + # do not unpack jar file + true +} + +src_install() { + java-pkg_newjar "${DISTDIR}/${P}.jar" ${P}-legacy.jar + java-pkg_dolauncher ${PN}-legacy --jar ${P}-legacy.jar --java_args "\${JAVA_OPTS}" + + doicon -s scalable "${DISTDIR}/${PN}-legacy.svg" + make_desktop_entry ${PN}-legacy "Minecraft (legacy)" ${PN}-legacy Game +} diff --git a/games-action/minecraft-launcher/minecraft-launcher-2.1.13829.ebuild b/games-action/minecraft-launcher/minecraft-launcher-2.1.13829.ebuild new file mode 100644 index 0000000..34f513d --- /dev/null +++ b/games-action/minecraft-launcher/minecraft-launcher-2.1.13829.ebuild @@ -0,0 +1,53 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop xdg + +DESCRIPTION="An open-world game whose gameplay revolves around breaking and placing blocks" +HOMEPAGE="https://www.minecraft.net/" +SRC_URI="https://launcher.mojang.com/download/linux/x86_64/minecraft-launcher_${PV}.tar.gz -> ${P}.tar.gz + https://launcher.mojang.com/download/minecraft-launcher.svg" + +KEYWORDS="~amd64 ~x86" +LICENSE="Mojang" +SLOT="2" + +RESTRICT="bindist mirror" + +RDEPEND=" + >=x11-libs/gtk+-2.24.32-r1 + dev-libs/nss + gnome-base/gconf + media-libs/openal + sys-apps/dbus + virtual/jre:1.8 + virtual/opengl + x11-apps/xrandr + x11-libs/libXScrnSaver + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrender + x11-libs/libXtst + x11-libs/xcb-util +" + +S="${WORKDIR}/${PN}" + +src_install() { + dodir /opt/${PN} + insinto /opt/${PN}/ + doins -r . + + fperms +x /opt/${PN}/${PN} + + dosym ../${PN}/${PN} /opt/bin/${PN} + + doicon -s scalable "${DISTDIR}/${PN}.svg" + make_desktop_entry ${PN} "Minecraft" ${PN} Game +}