Package Details: mindustry 1:7.0_137-1

Git Clone URL: (read-only, click to copy)
Package Base: mindustry
Description: A sandbox tower defense game written in Java
Upstream URL:
Licenses: GPL3
Submitter: dmitmel
Maintainer: dmitmel
Last Packager: dmitmel
Votes: 28
Popularity: 1.06
First Submitted: 2019-10-10 21:43 (UTC)
Last Updated: 2022-08-05 07:40 (UTC)

Dependencies (6)

Required by (0)

Sources (5)

Latest Comments

pescepalla commented on 2022-08-01 17:17 (UTC)

If anyone is having trouble running it on Wayland, this works for me:

env SDL_VIDEODRIVER=x11 mindustry

VinceUB commented on 2022-03-22 07:34 (UTC)

Building fails if the default JDK is JDK 11. My solution was to set the JAVA_HOME env var to JDK 17.

dmitmel commented on 2022-01-26 22:08 (UTC)

t-8ch: Fair.

t-8ch commented on 2022-01-26 21:07 (UTC)

As the android module seems to lead to issues and the AUR package should not need it anyways, it should be possible to unset ANDROID_HOME in the PKGBUILD. The the android module will not be built.

dmitmel commented on 2020-12-31 17:01 (UTC)

croxis: Thanks. Fixed in pkgrel 2.

croxis commented on 2020-12-31 17:00 (UTC)

I attempted to build when I set up a fresh vm. Gradle complained about missing.

dmitmel commented on 2020-12-31 12:55 (UTC)

croxis: How did you determine that? Where is that mentioned?

croxis commented on 2020-12-31 05:21 (UTC)

alsa-lib is also required for building

dmitmel commented on 2020-10-17 15:00 (UTC)

jakyote: Thanks for mentioning. Have fixed in pkgrel 2.

jakyote commented on 2020-10-17 14:55 (UTC)

Current settings.gradle specifies Java must be 14 or above but the pkgbuild only requires Java>=8

grandchild commented on 2020-09-16 15:55 (UTC) (edited on 2020-09-16 15:55 (UTC) by grandchild)

Won't solve it myself today. I'll try again tomorrow.

grandchild commented on 2020-09-16 14:49 (UTC)

It doesn't. I'm looking into it, building from git source. I have done a lot of Gradle in the past, so I'm able to look into it myself.

I also noticed that 6.0-105 is still marked as alpha... so maybe it's not ready to update yet. If others start complaining too, maybe it was too early. If it stays just me, then I hope I can figure it out. :)

dmitmel commented on 2020-09-16 12:56 (UTC)

grandchild: Does compilation work now? If not: can you build Mindustry from source using the instructions on its homepage?

grandchild commented on 2020-09-16 10:44 (UTC) (edited on 2020-09-16 10:46 (UTC) by grandchild)

Hey there, I'm getting an error during build, about some Android SDK license not being accepted. I do have Android Studio installed, maybe it's detecting something?

$ archlinux-java get

I'm curious why it would try and build the android app anyway...

Here's the error (with some usual generic Gradle error stuff removed):

==> Starting build()...
> Configure project :
Compiling with build: '105'

> Configure project :android
No keystore info property found!
File /home/[me]/.android/repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 29.0.3 in /opt/android-sdk/licenses
Warning: License for package Android SDK Build-Tools 29.0.3 not accepted.
Checking the license for package Android SDK Platform 29 in /opt/android-sdk/licenses
Warning: License for package Android SDK Platform 29 not accepted.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':android'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     build-tools;29.0.3 Android SDK Build-Tools 29.0.3
     platforms;android-29 Android SDK Platform 29
  To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
  Alternatively, to transfer the license agreements from one workstation to another, see

  Using Android SDK: /opt/android-sdk


==> ERROR: A failure occurred in build().

dmitmel commented on 2020-03-10 14:08 (UTC)

@Daniel071 If you find a way to programmatically download releases from - please tell me, I don't know how to do this. The link is updated and has an expiration date and a unique token. Also, releases from don't contain the source code, so you submitted an out-of-date request to a wrong package (more appropriate would be mindustry-bin or mindustry-server-bin). GitHub repository doesn't contain tags for v104.5, so I can't build it from source either in this package. If you want the latest version - try mindustry-git.

dmitmel commented on 2020-01-03 16:03 (UTC)

@vasya @Corubba I can't replicate the error you get, although I added some code to find and select a compatible JDK nevertheless. Sorry for a late response, it's holidays after all.

vasya commented on 2020-01-01 17:55 (UTC)

Generally it's a mess I think, no really good solution. Something that would "mostly" work is:

export PATH="/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH"
export PATH="/usr/lib/jvm/java-9-openjdk/jre/bin/:$PATH"
export PATH="/usr/lib/jvm/java-10-openjdk/jre/bin/:$PATH"
export PATH="/usr/lib/jvm/java-11-openjdk/jre/bin/:$PATH"
export PATH="/usr/lib/jvm/java-12-openjdk/jre/bin/:$PATH"
./gradlew ...args...

the app itself is runnable on jre-13, just checked.

Unfortunately I do not know any way to even pin specific version, like 8, without also specifying that it should be openjdk specifically.

dmitmel commented on 2020-01-01 01:10 (UTC)

vasya, could you please provide an example script which selects JRE on Arch based on its version?

vasya commented on 2019-12-31 15:35 (UTC)

... and mindustry dev said that gradle 6 won't be supported for now, so we need to fix it in AUR.

One way of doing that is to specify the dependencies like that: depends=("java-runtime>=8" "java-runtime<13")

This will ensure that the right jre is installed, but it won't check on what's actually used. To make the *.sh script work properly, the PATH tricks (mentioned in prev comments) need to be used....

vasya commented on 2019-12-31 12:24 (UTC)

I've raised an issue upstream, hopefully they'll fix it soon.

Corubba commented on 2019-12-30 22:31 (UTC) (edited on 2019-12-30 22:32 (UTC) by Corubba)

In case someone else hits a Unsupported class file major version 57 during the gradle build: Gradle supports Java13 only from version 6 onwards. You need to change the url in gradle/wrapper/ to the latest v6 release (6.0.1 at time of writing).

vasya commented on 2019-10-28 10:14 (UTC)

Builds fine. Thanks for changing! Run-time was already using system-s default, 11 in my case, so there's no explicit reason to check. (And I'm at work now.)

dmitmel commented on 2019-10-28 09:23 (UTC)

vasya: try updating now

vasya commented on 2019-10-28 09:13 (UTC)

It does work with 11 as far as I could test indeed, I've been playing campaign and online in the past days with it. Also, since the game is started with java -jar, version 11 might still take priority on many systems. If you want to really push 11, maybe you can look into that: (I would just specify 8+ though:)

dmitmel commented on 2019-10-28 08:34 (UTC)

vasya: It does work with Java 11 (at least starts, just tested), however only Java 8 is officially supported, so I'd rather wait for official announcements.

vasya commented on 2019-10-28 08:12 (UTC) (edited on 2019-10-28 08:12 (UTC) by vasya)

And another question if you don't mind. Does mindustry work on versions of java higher than 8? If yes, then the java dependency requirement should be changed to ">=8" I think. Otherwise you have e.g. java11, but mindustry won't build until you also install 8. The game will later be started with just java -jar anyway, so an update probably makes sense.

vasya commented on 2019-10-25 15:10 (UTC)


dmitmel commented on 2019-10-25 14:37 (UTC)

vasya: done

vasya commented on 2019-10-25 11:26 (UTC)

A small request: can you please quote usages of ${pkgbase} and ${pkgname}? I know this is not strictly required for a pkgbase that doesn't contain spaces, but shellcheck still gives a warning about it, and it might be nice to escape everything uniformly.