summaryrefslogtreecommitdiff
path: root/games-action/minecraft/minecraft-1.6.93-r1.ebuild
blob: 137b1f23a74f5e0512684c5f093de70ed8091881 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit desktop

MY_JAR="${PN}-launcher-${PV}.jar"

DESCRIPTION="Official Java launcher for Minecraft"
HOMEPAGE="https://minecraft.net"
SRC_URI="https://launcher.mojang.com/v1/objects/eabbff5ff8e21250e33670924a0c5e38f47c840b/launcher.jar -> ${MY_JAR}
	https://minecraft.net/android-icon-192x192.png -> ${PN}.png"

LICENSE="Minecraft-clickwrap-EULA"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="
	media-libs/openal
	virtual/opengl
	>=virtual/jre-1.8"

S="${WORKDIR}"

src_unpack() {
	:
}

src_install() {
	insinto /usr/share/games/"${PN}"
	newins "${DISTDIR}/${MY_JAR}" launcher.jar

	dobin "${FILESDIR}"/minecraft

	doicon -s 192 "${DISTDIR}/${PN}.png"
	make_desktop_entry "${PN}" "${PN^}" "${PN}"
}

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}"
}