summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-action/minecraft-launcher/Manifest3
-rw-r--r--games-action/minecraft-launcher/metadata.xml8
-rw-r--r--games-action/minecraft-launcher/minecraft-launcher-1.6.93.ebuild34
-rw-r--r--games-action/minecraft-launcher/minecraft-launcher-928.ebuild56
4 files changed, 101 insertions, 0 deletions
diff --git a/games-action/minecraft-launcher/Manifest b/games-action/minecraft-launcher/Manifest
new file mode 100644
index 000000000000..9d37328fd429
--- /dev/null
+++ b/games-action/minecraft-launcher/Manifest
@@ -0,0 +1,3 @@
+DIST minecraft-launcher-1.6.93.jar 4481683 BLAKE2B 29597977cc70f831bff7f77cb2493d8c8f8138518c79f5e92f91ed6440ae2224b4140546c37645370173c668d9db894ca6b548b6cfd41da40c4e1ff51f0d820b SHA512 85739c0c0828af5b901b9933173f08229175aef1e8dec40c83981fb6fc330285b4c3a206cdf4405408106eff56ce1e516368d18bf44f631446ebac45e9aba125
+DIST minecraft-launcher-928.tar.gz 547096 BLAKE2B 8a47c62b5aa313a476cb6fb95e2993f609d3d1adde67802f3ef95df6385938dca424a3037ddb3303615323d10d0cd395807182ac75bae839502f13eb3faf2287 SHA512 57deacc588e8d90c90259841045a3df3b2b4861cb2d95b38e417daa34eee6aad4eebb601c2160627d5d5cd34f309aed854fb78872379cecfc8b976f3e14c8f91
+DIST minecraft-launcher.svg 61803 BLAKE2B 6527c869aec955f5e457e57f6c60b6391c29f2bc6f83d72b9a432cc9b77df6fb842549158f38e32a0bec6973d6fac4af3a1a5562cb84b5a4fd1d95de645da842 SHA512 aa08e8fa2a5c1c3e2d714644cb9648adb779c09fff5a9e5b79cea42c53be3f53631d199f72c1eec56e4b4f8e46be8f4ae88fbe456865621b589a7c4f9438549a
diff --git a/games-action/minecraft-launcher/metadata.xml b/games-action/minecraft-launcher/metadata.xml
new file mode 100644
index 000000000000..2878794054cd
--- /dev/null
+++ b/games-action/minecraft-launcher/metadata.xml
@@ -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@gentoo.org</email>
+ <name>Andrew Ammerlaan</name>
+ </maintainer>
+</pkgmetadata>
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 000000000000..5a590a02ca45
--- /dev/null
+++ b/games-action/minecraft-launcher/minecraft-launcher-1.6.93.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2019-2021 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"
+
+KEYWORDS="~amd64"
+LICENSE="Mojang"
+SLOT="legacy"
+
+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" ${PN}-legacy.jar
+ java-pkg_dolauncher ${PN}-legacy --jar ${PN}-legacy.jar --java_args "\${JAVA_OPTS}"
+
+ newicon -s scalable "${DISTDIR}/${PN}.svg" "${PN}-legacy.svg"
+ make_desktop_entry ${PN}-legacy "Minecraft (legacy)" ${PN}-legacy Game
+}
diff --git a/games-action/minecraft-launcher/minecraft-launcher-928.ebuild b/games-action/minecraft-launcher/minecraft-launcher-928.ebuild
new file mode 100644
index 000000000000..847536eabe27
--- /dev/null
+++ b/games-action/minecraft-launcher/minecraft-launcher-928.ebuild
@@ -0,0 +1,56 @@
+# Copyright 2019-2021 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"
+LICENSE="Mojang"
+SLOT="0"
+
+RESTRICT="bindist mirror"
+
+RDEPEND="
+ >=x11-libs/gtk+-2.24.32-r1[X(+)]
+ dev-libs/nss
+ dev-libs/libbsd
+ dev-libs/libffi
+ dev-libs/libpcre
+ media-libs/alsa-lib
+ media-libs/openal
+ net-libs/gnutls[idn]
+ net-print/cups
+ 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}"
+
+QA_PREBUILT="
+ /usr/bin/minecraft-launcher
+"
+
+src_install() {
+ dobin minecraft-launcher
+
+ doicon -s scalable "${DISTDIR}/${PN}.svg"
+ make_desktop_entry ${PN} "Minecraft" ${PN} Game
+}