From d5c52c582ee69a0e268bf2a1edd992c2f2249ffb Mon Sep 17 00:00:00 2001 From: Marcin Deranek Date: Sat, 12 Jan 2019 22:57:30 +0100 Subject: New ebuild --- games-action/minecraft/minecraft-29.ebuild | 57 ++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 games-action/minecraft/minecraft-29.ebuild (limited to 'games-action/minecraft/minecraft-29.ebuild') diff --git a/games-action/minecraft/minecraft-29.ebuild b/games-action/minecraft/minecraft-29.ebuild new file mode 100644 index 0000000..a091cc1 --- /dev/null +++ b/games-action/minecraft/minecraft-29.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit games java-utils-2 + +DESCRIPTION="An open-world game whose gameplay revolves around breaking and placing blocks" +HOMEPAGE="http://www.minecraft.net" +SRC_URI=" + https://github.com/Tabinol/gentoo-minecraft/archive/${PV}.tar.gz -> ${P}.tar.gz + https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar -> ${PN}.jar" + +LICENSE="Minecraft" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="mirror" + +S="${WORKDIR}/gentoo-minecraft-${PV}" + +RDEPEND=">=virtual/jre-1.8.0 + >=x11-apps/xrandr-1.4.3 + virtual/ttf-fonts" + +DEPEND="" + +pkg_setup() { + games_pkg_setup +} + +src_unpack() { + unpack ${P}.tar.gz +} + +src_prepare() { + sed --in-place "s:@GENTOO_PORTAGE_EPREFIX@:${EPREFIX}:g" "${PN}" || die +} + +src_install() { + java-pkg_dojar "${DISTDIR}/${PN}.jar" + dogamesbin "${PN}" + doicon "${PN}.png" + make_desktop_entry "${PN}" "Minecraft" + + prepgamesdirs +} + +pkg_postinst() { + ewarn "if you are doing an update, consider to remove minecraft-gentoo call" + ewarn "in Minecraft launcher configuration which is no longer installed." + ewarn "Every Minecraft versions should work." + echo + + games_pkg_postinst +} + -- cgit v1.2.3