Package Details: jsettlers-git 0.6.0.6.alpha.r2.gf7597a2f2-1

Git Clone URL: https://aur.archlinux.org/jsettlers-git.git (read-only, click to copy)
Package Base: jsettlers-git
Description: A Remake of "The Settlers III" for Windows, Linux, Mac and Android - forked by paulwedeck
Upstream URL: https://github.com/paulwedeck/settlers-remake
Keywords: game iii settler settlers
Licenses: MIT
Provides: jsettlers
Submitter: aligator
Maintainer: aligator
Last Packager: aligator
Votes: 0
Popularity: 0.000000
First Submitted: 2018-04-15 11:46 (UTC)
Last Updated: 2023-03-21 17:50 (UTC)

Dependencies (5)

Required by (0)

Sources (2)

Latest Comments

aligator commented on 2023-03-21 17:51 (UTC)

@Toorero Yes, good idea. Done :-) Could you please verify if it is now as you expect it?

Toorero commented on 2023-03-20 16:45 (UTC)

I think you should change the working directory of JSettlers to follow the XDG Base Directory specification.

So I would change the launch script to

mkdir -p "${XDG_DATA_HOME:-$HOME/.local/share}/${_pkgname}"
cd "${XDG_DATA_HOME:-$HOME/.local/share}/${_pkgname}"
...

aligator commented on 2018-08-22 19:08 (UTC) (edited on 2018-08-22 19:12 (UTC) by aligator)

ok, I already thought about adding a package using these https://github.com/jsettlers/settlers-nightlies/tree/gh-pages/master builds.

I'll add it when I have time.

Edit: Did you redownload the repo? Because the message says the file doesn't exist. Maybe it is a download error.

dreieck commented on 2018-08-22 18:10 (UTC)

@aligator: Thanks.

I still cannot build and get those errors.

Downloading the prebuilt .jar from the upstream's website works to play this game ...

aligator commented on 2018-08-22 17:53 (UTC)

Added now --gradle-user-home=. just like the package "jadx" from the official repos does it.

aligator commented on 2018-08-22 17:26 (UTC) (edited on 2018-08-22 17:40 (UTC) by aligator)

Updated the package with makedepend on gradle instead of using gradlew.

This should fix your first comment. But the files in .gradle are still there.This is how gradle works... (Please tell me if you know a better way to use gradle with AUR)

Maybe it fixes your second comment also. For me it builds fine.

Please try it and give me feedback if it works now.

aligator commented on 2018-08-22 16:49 (UTC) (edited on 2018-08-22 16:55 (UTC) by aligator)

Thank you for the feedback. I'll fix it as soon as possible. For the gradle problem: As gradle is a makedep, I could use gradle from Arch instead of the gradlewrapper and add gradle to makedeps. Would that be a good solution?

dreieck commented on 2018-08-22 16:44 (UTC)

Build fails for me:

[...]
Download <https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.8.2/gson-2.8.2.jar>
:go.graphics:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Failed to capture snapshot of input files for task ':go.graphics:compileJava' property 'source' during up-to-date check.
> Failed to create MD5 hash for file '/var/tmp/yaourt-tmp-felics/aur-jsettlers-git/src/jsettlers/go.graphics/src/main/java/go/graphics/event/command/GOCommandEvent.java' as it does not exist.

* 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>

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See <https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD FAILED in 4m 26s
1 actionable task: 1 executed
==> ERROR: A failure occurred in build().
    Aborting...

dreieck commented on 2018-08-22 16:38 (UTC) (edited on 2018-08-22 16:40 (UTC) by dreieck)

build() triggers a download of <https://services.gradle.org/distributions/gradle-4.6-all.zip>. This should be downloaded via source-array. Please change.

And then it installs some big files to $HOME/.gradle of the user makepkg runs as.change. This should never happen, instead, some build-time temporary directory should be used. Please fix that.