Package Details: mindustry 147.1-1

Git Clone URL: https://aur.archlinux.org/mindustry.git (read-only, click to copy)
Package Base: mindustry
Description: A sandbox tower defense game
Upstream URL: https://github.com/Anuken/Mindustry
Licenses: GPL-3.0-only
Submitter: dmitmel
Maintainer: xiota
Last Packager: xiota
Votes: 33
Popularity: 0.79
First Submitted: 2019-10-10 21:43 (UTC)
Last Updated: 2025-04-18 09:23 (UTC)

Dependencies (5)

Required by (0)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

Misaka13514 commented on 2024-01-04 11:15 (UTC)

https://wiki.archlinux.org/title/Java#Launching_an_application_with_the_non-default_java_version You can restrict java version in dependencies and use environment variables to select the java version which package needs.

tiziodcaio commented on 2024-01-02 10:30 (UTC)

Why don't you use the bundled archlinux gradle?

hrehfeld commented on 2023-06-23 11:20 (UTC)

FAILURE: Build failed with an exception.

* Where:
Settings file '/home/hrehfeld/.cache/pikaur/build/mindustry/src/Mindustry-145.1/settings.gradle' line: 2

* What went wrong:
A problem occurred evaluating settings 'Mindustry-145.1'.
> !!! YOU MUST USE JAVA 16 OR ABOVE TO COMPILE AND RUN MINDUSTRY !!! Read the README. Your version: 11.0.19

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s

Not sure how broken the java landscape is, but shouldn't deps take care of version conflicts like this?

airgap97 commented on 2023-04-15 11:23 (UTC) (edited on 2023-04-15 11:24 (UTC) by airgap97)

If you'd rather compile on your own, follow these instructions. First, make sure you have JDK 16-17 installed. Other JDK versions will not work. Open a terminal in the Mindustry directory and run the following commands:

sudo archlinux-java set java-17-openjdk

yohann commented on 2023-03-09 17:13 (UTC)

it may not be the right place, but it took me a lot of time to figure out i needed to do this: hopefully it we be usefull for some lurker

sudo archlinux-java set java-19-openjdk

ahmubashshir commented on 2022-12-09 15:10 (UTC) (edited on 2022-12-09 15:12 (UTC) by ahmubashshir)

It also builds with 'java-environment=17' or this patch

diff --git a/PKGBUILD b/PKGBUILD
index 4fb5089..a15ec83 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -61,6 +61,7 @@ build() {
   # Android app here.
   # <https://github.com/Anuken/Mindustry/blob/00e3a59463f41bdce5b12cf5b4715a253f7af306/settings.gradle#L14>
   unset ANDROID_HOME
+  sed -i '/distributionUrl/s/7\.5\.1/7.6-milestone-1/' gradle/wrapper/gradle-wrapper.properties

   ./gradlew --no-daemon dist -Pbuildversion="${_build}" desktop:dist server:dist

nokdus commented on 2022-11-14 01:44 (UTC)

@Newk-B I added to PKGBUILD after build()

build() {
  cd "${_repo_name}-${_build}"

cat << EOF > gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-milestone-1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
EOF

Newk-B commented on 2022-11-14 00:20 (UTC) (edited on 2022-11-14 00:38 (UTC) by Newk-B)

@nokdus: Thank you for that solution! I could build this package now two times with that, on version 140.3 and 140.4.

As i am on Manjaro and using Pamac to build, install and maintain these AUR packages i had to: modify the downloaded *.tar.gz the way you describe it. And then point out it's location in the PKGBUILD file that is in Pamac's build directory instead of the download URL, like so:

source=("${pkgbase}-${_build}.tar.gz::/var/tmp/pamac-build-newk/mindustry/mindustry-140.4.tar.gz"
        "${pkgbase}.desktop"
        "${pkgbase}.sh"
        "${pkgbase}-server.desktop"
        "${pkgbase}-server.sh")
sha256sums=('2442c60c33631d81193932930c8dacb1b9af61cfe8ca306f70436f21c0fcd1f3'
            'e5fd49ed3456c53e91b834cb388956e3f9ded4e2c880352d36cf9c2246ca0f0b'
            '938f5f9f636379402ba0bb9a53345de499f4f3fd50f232b31605129dcf4ea6c9'
            '053030932334f40145e927f6c7e9ebf01bd28ddd1e7b9fba6234b51cc83ad241'
            '679727847ba70773cee4f902114345e095b27f425aa00c4d3860d247705ed1f0')

(the top sha256sum regenerated after i modified the .tar.gz)

I can imagine it is not an easy task to make a PKGBUILD script in such a way that it reproduces all these steps automaticly.

nokdus commented on 2022-11-06 08:43 (UTC) (edited on 2022-11-06 14:47 (UTC) by nokdus)

Current gradle version does not support java 19, I was able to build only by changing the gradle version

gradle-7.5.1-bin.zip to gradle-7.6-milestone-1-bin.zip

in file gradle/wrapper/gradle-wrapper.properties

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-milestone-1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists