mindustry: new, 146#9156
Conversation
| install -Dm755 "$SRCDIR/desktop/build/libs/Mindustry.jar" "$PKGDIR/usr/share/java/mindustry/mindustry.jar" | ||
| install -Dm755 "$SRCDIR/server/build/libs/server-release.jar" "$PKGDIR/usr/share/java/mindustry/mindustry_server.jar" |
| install -Dm755 "$SRCDIR/server/build/libs/server-release.jar" "$PKGDIR/usr/share/java/mindustry/mindustry_server.jar" | ||
| local icon_size | ||
| for icon_size in 256 512 1024; do | ||
| install -Dm644 "$SRCDIR/core/assets/icons/icon_${icon_size}x${icon_size}x32.png" \ |
| @@ -0,0 +1,5 @@ | |||
| PKGNAME=mindustry | |||
| PKGSEC=games | |||
| PKGDEP="openjdk-17 alsa-lib libicns hicolor-icon-theme" | |||
There was a problem hiding this comment.
You might want to depend on openjdk instead of depending on a specific version of openjdk, unless otherwise specified by the upstream.
There was a problem hiding this comment.
Upstream https://github.com/Anuken/Mindustry said:
If you'd rather compile on your own, follow these instructions. First, make sure you have JDK 17 installed. Other JDK versions will not work. Open a terminal in the Mindustry directory and run the following commands:
Well, I need to mark openjdk 17 as builddep?
There was a problem hiding this comment.
Upstream https://github.com/Anuken/Mindustry said:
If you'd rather compile on your own, follow these instructions. First, make sure you have JDK 17 installed. Other JDK versions will not work. Open a terminal in the Mindustry directory and run the following commands:
Well, I need to mark openjdk 17 as builddep?
I see. You might want to make sure other OpenJDK versions can run the game then, otherwise we can still make it a PKGDEP as requested by the upstream.
| @@ -0,0 +1,2 @@ | |||
| patch -Np1 -d ../Arc -i ../mindustry/autobuild/patches/fix-arc-build-in-gradle.patch | |||
| patch -Np1 -i autobuild/patches/always-use-local-arc.patch | |||
There was a problem hiding this comment.
No need to write a patch file. Patches inside the patch/ directory will be applied automatically during the building process.
There was a problem hiding this comment.
Two patches are patched separately.
First file patches to the Arc folder.
Second file patches to the mindustry folder, which is the default...
There was a problem hiding this comment.
correction: patches directory
There was a problem hiding this comment.
Two patches are patched separately. First file patches to the Arc folder. Second file patches to the mindustry folder, which is the default...
One way to do that is set SUBDIR=., where the parent folder of both SRCS would be the SRCDIR. And then you can have patch files corresponding to two sources.
| @@ -0,0 +1,2 @@ | |||
| patch -Np1 -d ../Arc -i ../mindustry/autobuild/patches/fix-arc-build-in-gradle.patch | |||
| patch -Np1 -i autobuild/patches/always-use-local-arc.patch | |||
There was a problem hiding this comment.
Two patches are patched separately. First file patches to the Arc folder. Second file patches to the mindustry folder, which is the default...
One way to do that is set SUBDIR=., where the parent folder of both SRCS would be the SRCDIR. And then you can have patch files corresponding to two sources.
| abinfo "Installing client jar file..." | ||
| install -Dm755 "$SRCDIR/desktop/build/libs/Mindustry.jar" "$PKGDIR/usr/share/java/mindustry/mindustry.jar" | ||
|
|
||
| abinfo "Installing server jar file..." | ||
| install -Dm755 "$SRCDIR/server/build/libs/server-release.jar" "$PKGDIR/usr/share/java/mindustry/mindustry_server.jar" |
There was a problem hiding this comment.
Add some verbosity here (i.e. Supply -v argument for install.)
| @@ -0,0 +1,5 @@ | |||
| PKGNAME=mindustry | |||
| PKGSEC=games | |||
| PKGDEP="openjdk-17 alsa-lib libicns hicolor-icon-theme" | |||
There was a problem hiding this comment.
Upstream https://github.com/Anuken/Mindustry said:
If you'd rather compile on your own, follow these instructions. First, make sure you have JDK 17 installed. Other JDK versions will not work. Open a terminal in the Mindustry directory and run the following commands:
Well, I need to mark openjdk 17 as builddep?
I see. You might want to make sure other OpenJDK versions can run the game then, otherwise we can still make it a PKGDEP as requested by the upstream.
| @@ -1,18 +1,8 @@ | |||
| [Desktop Entry] | |||
| Categories=Game; | |||
| Comment[zh_CN]=A sandbox tower defense game | |||
There was a problem hiding this comment.
Don't just remove it, try to leave a clear and correct zh_CN description :)
| @@ -0,0 +1,2 @@ | |||
| #!/usr/bin/env sh | |||
| exec /usr/bin/java -jar /usr/share/java/mindustry/mindustry.jar "\$@" | |||
| @@ -0,0 +1,24 @@ | |||
| abinfo "Entering mindustry folder..." | |||
| cd ./mindustry | |||
There was a problem hiding this comment.
Use absolute path (i.e. "$SRCDIR"/mindustry).
| patch -Np1 -d ./Arc -i ../autobuild/patches/fix-arc-build-in-gradle.patch | ||
| patch -Np1 -d ./mindustry -i ../autobuild/patches/always-use-local-arc.patch |
There was a problem hiding this comment.
You can prepend the directory names to your patches to avoid writing a patch file.
There was a problem hiding this comment.
I still cannot figure out what you're saying:P
|
Dickens-topic report: |
|
Will be continued in this repo, closed... |

Topic Description
mindustry: new, 146
Package(s) Affected
None.
Security Update?
No.
Test Build(s) Done
Primary Architectures
noarchSecondary Architectures
Architectural progress for secondary ports does not impede on merging of this topic.
loongson3ppc64elriscv64Note: Per Anuken/Arc#181, it may not that "noarch" since sdl2 compiled...