starsector.sh is failing to pass validation in latest package.
Search Criteria
Package Details: starsector 0.98a_RC8-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/starsector.git (read-only, click to copy) |
---|---|
Package Base: | starsector |
Description: | Starsector (formerly "Starfarer") is an in-development open-world single-player space-combat, roleplaying, exploration, and economic game. |
Upstream URL: | http://fractalsoftworks.com/ |
Licenses: | custom |
Replaces: | starfarer |
Submitter: | levyd |
Maintainer: | pschichtel |
Last Packager: | pschichtel |
Votes: | 23 |
Popularity: | 0.96 |
First Submitted: | 2015-08-10 01:58 (UTC) |
Last Updated: | 2025-04-26 00:38 (UTC) |
Dependencies (5)
- bash (bash-devel-gitAUR, bash-gitAUR)
- desktop-file-utils (desktop-file-utils-gitAUR)
- java-environment (jdk12AUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, amazon-corretto-16AUR, jdk8-graalvm-binAUR, jdk16-graalvm-binAUR, jdk16-adoptopenjdkAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jdk16-openjdkAUR, jdk14-openjdkAUR, jdk18-openjdkAUR, amazon-corretto-19-binAUR, jdk19-graalvm-binAUR, liberica-jre-11-full-binAUR, jdk19-graalvm-ee-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jdk11-graalvm-binAUR, jdk-openj9AUR, jdk11-graalvm-ee-binAUR, jdk12-openjdkAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, jdk20-graalvm-binAUR, jdk17-graalvm-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jdk13-openjdkAUR, jdk15-openjdkAUR, jdk21-graalvm-binAUR, jdk17-jetbrainsAUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, liberica-nik-24-full-binAUR, jdk21-jetbrains-gitAUR, zulu-8-binAUR, mandrel-binAUR, mandrel24-binAUR, liberica-jdk-11-lite-binAUR, jdk17-graalvm-ee-binAUR, jdk22-graalvm-ee-binAUR, jdk20-graalvm-ee-binAUR, jdk22-graalvm-binAUR, jdk19-openjdkAUR, zulu-jdk-fx-binAUR, jabba-binAUR, jdk21-jetbrainsAUR, jdk17-zulu-prime-binAUR, zulu-fx-binAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk11-openj9-binAUR, jdk-openjdk-wakefieldAUR, jre-zulu-binAUR, jre-zulu-fx-binAUR, jdk-android-studioAUR, jdk-openj9-binAUR, zulu-11-binAUR, jdk8-graalvm-ee-binAUR, jdk11AUR, jdk21-graalvm-ee-binAUR, jdk8-openj9-binAUR, jdk8-temurinAUR, jdk8AUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, jdk23-graalvm-ee-binAUR, openjdk-zulu8-ca-fx-binAUR, openjdk-zulu11-ca-fx-binAUR, openjdk-zulu17-ca-fx-binAUR, openjdk-zulu21-ca-fx-binAUR, openjdk-liberica8-full-binAUR, openjdk-liberica11-full-binAUR, openjdk-liberica17-full-binAUR, openjdk-liberica21-full-binAUR, openjdk-zulu-ca-fx-binAUR, openjdk-liberica-full-binAUR, jdk24-graalvm-ee-binAUR, jdk8-perfAUR, zing-21-binAUR, jdk21-openj9-binAUR, jdk17-openj9-binAUR, jre-jetbrainsAUR, jdk21-jetbrains-binAUR, jdk17-jetbrains-binAUR, jdk21-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, java-openjdk-binAUR, jdk24-graalvm-ce-binAUR, jdkAUR, jdk-ltsAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jdk8-dragonwell-extendedAUR, liberica-jdk-11-binAUR, zulu-17-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-21-binAUR, java-openjdk-ea-binAUR, zulu-17-fx-binAUR, liberica-jdk-17-full-binAUR, zulu-21-binAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk-temurinAUR, jdk21-temurinAUR, jdk17-temurinAUR, jdk11-temurinAUR, zing-8-binAUR, zulu-24-binAUR, jdk23-temurinAUR, liberica-nik-23-full-binAUR, zing-23-binAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jdk8-openjdk)
- openal (openal-gitAUR)
- xorg-xrandr (xorg-xrandr-gitAUR)
Required by (1)
- starsector-mod-manager-rust (optional)
Sources (4)
cure1245 commented on 2022-12-12 05:35 (UTC)
pschichtel commented on 2022-12-11 15:35 (UTC) (edited on 2023-05-06 11:18 (UTC) by pschichtel)
0.95.1a_RC6-2 changed a bunch things that might need manual corrections after upgrading from earlier version:
- I dropped the java dependency and instead included the JRE that is bundled with the game for better compatibility
- I moved the user state directory ($HOME/.starsector) to the appropriate XDG directory $HOME/.local/share/starsector. the actual contents have not changed, so a simple
mv "$HOME/.starsector" "$HOME/.local/share/starsector"
should do the trick - The start script now supports customizing JVM arguments by creating a the script
$HOME/.config/starsector/startup.sh
which supports two variables (bash arrays):jvm_args
andprogram_args
. So e.g. if you customized the memory settings in the start script, you might want to move the changes to either of these variables (e.g. like this:jvm_args=(-Xms1536m -Xmx1536m -Xss2048k)
).
ddbb07 commented on 2022-10-30 09:13 (UTC)
You should use the included java jre as there are some compatibility issues with both mods and in my testing I've found reduced stability of the base game while using a systemwide java 7 installation.
hizani commented on 2022-09-08 20:19 (UTC) (edited on 2022-09-08 20:21 (UTC) by hizani)
Can't install
$ yay -S starsector
-> Could not find all required packages:
java-runtime=7 (Wanted by: starsector)
JamesMowery commented on 2021-12-14 03:29 (UTC) (edited on 2021-12-16 01:47 (UTC) by JamesMowery)
Anything we can do to help get this package updated?
Edit: Thanks for updating the package! I wasn't able to get sound working when downloading from Starsector's website and running the shell script (I feel like it wasn't detecting my default audio device or something), but when installed here through the AUR, the sound actually works! Yay! Thanks!
andrewgui commented on 2021-12-11 20:37 (UTC) (edited on 2021-12-11 20:40 (UTC) by andrewgui)
Lines 4 and 5 in starsector.sh:
JAVA7=/usr/lib/jvm/$(archlinux-java status | grep -m 1 java-7 | sed 's/^ *//')/bin
[ -d ${JAVA7} ] && export PATH=${JAVA7}:${PATH}
I don't think this bit actually works. If you run starsector
from a terminal, the first line of output shows:
/usr/bin/starsector: line 5: [: /usr/lib/jvm/java-7-openjdk/jre: binary operator expected
The only java I have installed on my system is the java7 that gets pulled in by this package. archlinux-java status
returns " java-7-openjdk/jre (default)", and it looks like the sed
removes the leading whitespace, but the " (default)" on the end of the line still needs to be handled. Since it doesn't get removed, it gets passed as a second argument to [ -d ${JAVA7} ] && export
and the export doesn't actually run.
Starsector still launches though (in my case) because PATH already has /usr/lib/jvm/default/bin
thanks to /etc/profile.d/jre.sh
that gets installed by the java7 dependency.
Polar_Phoenix commented on 2021-10-01 14:40 (UTC)
I assume it's ~/.starsector/mods , but not sure, never used it
sTiKyt commented on 2021-09-28 08:12 (UTC)
Can't find where mods/ folder is located, any help?
Glomzubuk commented on 2021-03-30 12:22 (UTC)
The starsector.sh bundled with the new release has new RAM allocation defaults that trigger in-game warnings if not met. Theses are the new defaults:
-Xms1536m -Xmx1536m -Xss2048k
t-8ch commented on 2020-01-12 20:53 (UTC)
Both source links could be switched to HTTPS.
Pinned Comments
pschichtel commented on 2022-12-11 15:35 (UTC) (edited on 2023-05-06 11:18 (UTC) by pschichtel)
0.95.1a_RC6-2 changed a bunch things that might need manual corrections after upgrading from earlier version:
mv "$HOME/.starsector" "$HOME/.local/share/starsector"
should do the trick$HOME/.config/starsector/startup.sh
which supports two variables (bash arrays):jvm_args
andprogram_args
. So e.g. if you customized the memory settings in the start script, you might want to move the changes to either of these variables (e.g. like this:jvm_args=(-Xms1536m -Xmx1536m -Xss2048k)
).