1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 18:17:34 +00:00

Ports: Add Jagged Alliance 2 Stracciatella port

This commit is contained in:
safarp 2022-03-21 21:51:29 +01:00 committed by Linus Groh
parent 502445ad16
commit 278241859b
4 changed files with 2478 additions and 0 deletions

20
Ports/ja2/package.sh Executable file
View file

@ -0,0 +1,20 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=ja2
version=0.15.x
depends=("SDL2")
workdir="ja2-stracciatella-${version}"
files="https://github.com/ja2-stracciatella/ja2-stracciatella/archive/refs/heads/${version}.zip ja2-stracciatella-${version}.zip 178375de4859d16a76276c781455bf48d3fa862841387c8aa6cfa4162f4f0ca4"
auth_type=sha256
makeopts="SERENITY=1"
launcher_name="Jagged Alliance 2"
launcher_category=Games
launcher_command="/opt/ja2/ja2"
install() {
installdir="${SERENITY_INSTALL_ROOT}/opt/ja2"
run mkdir -p "${installdir}"
run cp -r ja2 mods externalized "${installdir}"
echo "INFO: Jagged Alliance 2 data have to be provided! Copy DATA directory located in the original Jagged Alliance 2 installation into the '${installdir}'."
echo "INFO: Boot up SerenityOS and run '/opt/ja2/ja2' executable in order to produce ja2.ini configuration file in the '/home/anon/.ja2'."
echo "INFO: Edit the configuration file and set 'data_dir' value to '/opt/ja2'."
}

View file

@ -0,0 +1,5 @@
# Patches for ja2
## `fix_SDL2_compilation.patch`
Migrates the source code and Makefile to use SDL 2.0 instead of version 1.2.

File diff suppressed because it is too large Load diff