games-strategy/mindustry - 8.0.157.3 (edgets)

Search

Install

Install this version:

emerge -a =games-strategy/mindustry-8.0.157.3

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =games-strategy/mindustry-8.0.157.3

Or alternatively:

emerge --autounmask-write -a =games-strategy/mindustry-8.0.157.3

Package Information

Description:
A sandbox tower defense game
Homepage:
https://mindustrygame.github.io/ https://github.com/Anuken/Mindustry/
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
8.0.157.3 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop java-pkg-2 xdg

MY_PV=$(ver_cut 3-)

DESCRIPTION="A sandbox tower defense game"
HOMEPAGE="
	https://mindustrygame.github.io/
	https://github.com/Anuken/Mindustry/
"
SRC_URI="https://github.com/Anuken/Mindustry/releases/download/v${MY_PV}/Mindustry.jar -> ${P}.jar"
S="${WORKDIR}"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND=">=virtual/jre-1.8:*"
BDEPEND="app-arch/unzip"

src_unpack() {
	unzip -jq "${DISTDIR}/${A}" icons/icon_64.png || die
}

src_compile() { :; }

src_install() {
	java-pkg_newjar "${DISTDIR}/${A}" "${PN}.jar"
	newicon -s 64 icon_64.png "${PN}.png"

	echo "export SDL_VIDEO_X11_WMCLASS=${PN}" > environment.txt || die
	java-pkg_dolauncher "${PN}" \
		--jar "${PN}.jar" \
		--java_args "\${JAVA_OPTS}" \
		-pre environment.txt

	make_desktop_entry --eapi9 \
		"${PN}" \
		--name "${PN^}" \
		--icon "${PN}" \
		--categories "Game;StrategyGame;" \
		--entry "StartupWMClass=${PN}" \
		--entry "GenericName=Tower Defense Sandbox" \
		--entry "Keywords=game;strategy;tower;defense;factory;automation;"
}

Inherited Eclasses

xdg

Dependencies

RDEPEND

>=virtual/jre-1.8:*

BDEPEND

app-arch/unzip

Manifest for 8.0.157.3

Type File Size Source URLs
DIST mindustry-8.0.157.3.jar 84583655 bytes https://github.com/Anuken/Mindustry/releases/download/v$(ver_cut/Mindustry.jar