games-action/minecraft-launcher: finally decent working ebuilds for minecraft

this of course only installs the launcher, to actually fetch the game
you need an to login with your account and download through the launcher

based on: https://data.gpo.zugaina.org/trolltoo/games-action/minecraft-launcher/

Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
Andrew Ammerlaan
2020-03-25 10:54:57 +01:00
parent 0f08228b49
commit 1599ff2d99
5 changed files with 106 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
DIST minecraft-launcher-1.6.93.jar 4481683 BLAKE2B 29597977cc70f831bff7f77cb2493d8c8f8138518c79f5e92f91ed6440ae2224b4140546c37645370173c668d9db894ca6b548b6cfd41da40c4e1ff51f0d820b SHA512 85739c0c0828af5b901b9933173f08229175aef1e8dec40c83981fb6fc330285b4c3a206cdf4405408106eff56ce1e516368d18bf44f631446ebac45e9aba125
DIST minecraft-launcher-2.1.13086.tar.gz 79517543 BLAKE2B 0eff1c6ebe7e1ae8f60c220afc4c0584ffb463c966f60f4057ae5e5b9e29c861ff60bd94ecd1d20d9a00f00156549cb374b8c6f9d7256ad13e9268959854c501 SHA512 c79c95316222aadb971b02bdb210442e13b82b5aa3e6ec136174274016a5a1ec5b006ffab1a293b7efc170da859a43e6c76ab32c8c97857e39253e8924e03fd0
DIST minecraft-launcher-legacy.svg 61803 BLAKE2B 6527c869aec955f5e457e57f6c60b6391c29f2bc6f83d72b9a432cc9b77df6fb842549158f38e32a0bec6973d6fac4af3a1a5562cb84b5a4fd1d95de645da842 SHA512 aa08e8fa2a5c1c3e2d714644cb9648adb779c09fff5a9e5b79cea42c53be3f53631d199f72c1eec56e4b4f8e46be8f4ae88fbe456865621b589a7c4f9438549a
DIST minecraft-launcher.svg 61803 BLAKE2B 6527c869aec955f5e457e57f6c60b6391c29f2bc6f83d72b9a432cc9b77df6fb842549158f38e32a0bec6973d6fac4af3a1a5562cb84b5a4fd1d95de645da842 SHA512 aa08e8fa2a5c1c3e2d714644cb9648adb779c09fff5a9e5b79cea42c53be3f53631d199f72c1eec56e4b4f8e46be8f4ae88fbe456865621b589a7c4f9438549a

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
java -jar /opt/minecraft-launcher/minecraft-launcher.jar

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>andrewammerlaan@riseup.net</email>
<name>Andrew Ammerlaan</name>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,39 @@
# 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/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="mirror"
RDEPEND="virtual/jre:1.8"
S="${WORKDIR}"
src_unpack() {
# do not unpack jar file
true
}
src_install() {
dodir /opt/${PN}
insinto /opt/${PN}/
newins "${DISTDIR}/${P}.jar" ${PN}.jar
insinto /opt/bin/
doins "${FILESDIR}/${PN}-legacy"
fperms +x /opt/bin/${PN}-legacy
doicon -s scalable "${DISTDIR}/${PN}-legacy.svg"
make_desktop_entry ${PN}-legacy "Minecraft (legacy)" ${PN}-legacy Game
}

View File

@@ -0,0 +1,50 @@
# 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="mirror"
RDEPEND="gnome-base/gconf
sys-apps/dbus
x11-apps/xrandr
x11-libs/libXcomposite
x11-libs/libXcursor
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXi
x11-libs/libXrender
x11-libs/libXScrnSaver
x11-libs/libXtst
x11-libs/xcb-util
>=x11-libs/gtk+-2.24.32-r1
media-libs/openal
virtual/opengl
virtual/jre:1.8"
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
}