Package Base Details: mindustry

Git Clone URL: https://aur.archlinux.org/mindustry.git (read-only, click to copy)
Submitter: dmitmel
Maintainer: dmitmel
Last Packager: dmitmel
Votes: 31
Popularity: 0.73
First Submitted: 2019-10-10 21:43 (UTC)
Last Updated: 2024-01-03 19:04 (UTC)

Latest Comments

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

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.

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.