Verified Commit 9c5e629f authored by flussence's avatar flussence

games-action/minecraft: new ebuild

I got tired of doing this ad-hoc in my homedir, and other people are
being misled into installing dangerously outdated mystery meat via other
overlays.
parent 0c3c728c
......@@ -34,10 +34,6 @@ N.B.: Anything not listed here is considered *very experimental*!
Signify is a strong cryptographic signature tool that fits on a floppy disk, with public
keys that fit in 140 characters, and a manpage that fits on one screen.
`app-shells/oil` — https://github.com/oilshell/oil[Oil Shell]::
Advertised as an upgrade path away from bash.
Expect this to become fairly significant now that Gentoo's abandoned libbash.
`dev-libs/libsass` — https://github.com/sass/libsass[libsass]::
`dev-util/sassc` — https://github.com/sass/sassc[SASS Compiler]::
C++ SASS stylesheet preprocessor, so you don't have to install Ruby for one.
......@@ -51,6 +47,10 @@ Not the most user-friendly option, but it gets the job done.
`dev-vcs/src` — https://gitlab.com/esr/src[Simple Revision Control]::
A version control tool suitable for all those loose scripts you have lying around.
`games-action/minecraft` — Java launcher for Minecraft::
Convenience ebuild that keeps the Minecraft launcher up to date for you.
Does not buy the game for you. Do that yourself.
`games-fps/ut2004-*` — UT2004 binaries and map packs via IPFS::
+
--
......
DIST minecraft-launcher-1.6.91.jar.lzma 3898657 BLAKE2B 5c547f5132facd301ad0d388cc77148c4bc16ec69c892788361a3e4b471931efe25a41c3f2f72216942983f90f6454f55ebcb96d9e74a310831d8374f94aba0b SHA512 9eb81c0f6ae84403660cb040af75a0aa0c4f6e1af6c0ca37c37075c96b8a9ed26241ce682d94e0efb10d32a660ad9eb726d5f79f764c3b16005c2156e98f108e SHA1 fa896bd4c79d4e9f0d18df43151b549f865a3db6
DIST minecraft.png 27633 BLAKE2B 6e718ae403eba36269704de8a488a8bbd82c733537c316a4b20a2b7f07733c266cadcec9d4636bda13c80a5eb155028e998c792b97978102d39c31de3ec7eaa0 SHA512 394450f1f2fdd966bd698265d4b543a20f197e8a096c9aeebcc610d3cef73de8493b00f078a1bb50d24230535ffa0537ded95cd38e913130268f053c44f3524a
#!/bin/sh
# Needed to make the launcher legible, and also work on 30bpp X screens.
export _JAVA_OPTIONS+='-Dawt.useSystemAAFontSettings=on -Dsun.java2d.opengl=true'
exec java -Xss228K -Xms6M -Xmx32M -XX:-UsePerfData \
-jar /usr/share/games/minecraft/launcher.jar
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ant+gentoo.bugs@flussence.eu</email>
<name>Anthony Parsons</name>
</maintainer>
<longdescription lang="en">
This package installs the launcher for the Java version of Minecraft. The launcher downloads the game itself and most of its dependencies.
</longdescription>
</pkgmetadata>
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop
MY_JAR="${PN}-launcher-${PV}.jar"
DESCRIPTION="Launcher for Minecraft"
HOMEPAGE="https://minecraft.net"
SRC_URI="http://launcher.mojang.com/mc/launcher/jar/fa896bd4c79d4e9f0d18df43151b549f865a3db6/launcher.jar.lzma -> ${MY_JAR}.lzma
https://minecraft.net/android-icon-192x192.png -> minecraft.png"
LICENSE="Minecraft-clickwrap-EULA"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}
media-libs/openal
virtual/opengl
virtual/jre"
S="${WORKDIR}"
src_install() {
dobin "${FILESDIR}"/minecraft
doicon -s 192 "${DISTDIR}"/minecraft.png
insinto /usr/share/games/${PN}/
newins "${MY_JAR}" launcher.jar
make_desktop_entry minecraft Minecraft minecraft
}
pkg_postinst() {
einfo "This package has installed the Java Minecraft launcher."
einfo "To actually play the game, you need to purchase an account at:"
einfo " ${HOMEPAGE}"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment