Package Details: mindustry 7.0.146-3

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.60
First Submitted: 2019-10-10 21:43 (UTC)
Last Updated: 2024-06-09 15:26 (UTC)

Dependencies (6)

Required by (0)

Sources (2)

Latest Comments

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

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

Henry-ZHR commented on 2022-11-01 23:50 (UTC)

openjdk version "19.0.1" 2022-10-18
OpenJDK Runtime Environment (build 19.0.1+10)
OpenJDK 64-Bit Server VM (build 19.0.1+10, mixed mode)

dmitmel commented on 2022-11-01 12:43 (UTC)

Henry-ZHR: What version of Java are you using?

Henry-ZHR commented on 2022-11-01 12:35 (UTC)

Fail to build

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file '/home/zhr/.cache/yay/mindustry/src/Mindustry-140/settings.gradle' (/home/zhr/.gradle/caches/7.5.1/scripts/clf09az73rlspqa616etzu9h7).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63

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.