Skip to content

Commit 5193d09

Browse files
committed
add Jagged Alliance 2 Stracciatella
Signed-off-by: Richard Fröhning <[email protected]>
1 parent 730b526 commit 5193d09

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/usr/bin/env bash
2+
3+
# This file is part of The RetroPie Project
4+
#
5+
# The RetroPie Project is the legal property of its developers, whose names are
6+
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
7+
#
8+
# See the LICENSE.md file at the top-level directory of this distribution and
9+
# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
10+
#
11+
12+
rp_module_id="ja2-stracciatella"
13+
rp_module_desc="Jagged Alliance 2 - Stracciatella. The continuation of the venerable JA2-Stracciatella project."
14+
rp_module_help="Start the game the first time. It will create the configuration ~/.ja2/ja2.json. Edit the configuration file and set parameter game_dir to point to the directory where the original game was installed.\n\nIf you installed not the English version of the original game, but one of the localized varieties (e.g. French or Russian), you need to start ja2 with parameter telling which version of the game you are using. For example: ja2.exe -resversion FRENCH. Supported localizations are DUTCH, ENGLISH, FRENCH, GERMAN, ITALIAN, POLISH, RUSSIAN, RUSSIAN_GOLD. Use RUSSIAN for the “BUKA Agonia Vlasty” release and RUSSIAN_GOLD for the “Gold” release.\n\nParameters can be set in: ${configdir}/ports/${rp_module_id}/emulators.cfg"
15+
rp_module_licence="SFI-SCLA https://raw.githubusercontent.com/ja2-stracciatella/ja2-stracciatella/master/SFI%20Source%20Code%20license%20agreement.txt"
16+
rp_module_repo="git https://github.com/ja2-stracciatella/ja2-stracciatella.git v0.21.0"
17+
rp_module_flags="sdl2"
18+
rp_module_section="exp"
19+
20+
function install_bin_ja2-stracciatella() {
21+
local version="ja2-stracciatella_0.21.0-git+61938e1_"
22+
isPlatform "x86" && version+="x86_64"
23+
isPlatform "arm" && version+="armhf"
24+
version+=".AppImage"
25+
download "https://github.com/ja2-stracciatella/ja2-stracciatella/releases/download/v0.21.0/$version" "$md_inst/ja2"
26+
chmod +x "$md_inst/ja2"
27+
}
28+
29+
function depends_ja2-stracciatella() {
30+
local depends=(cmake libsdl2-dev)
31+
[[ "$__os_debian_ver" -gt 11 ]] && depends+=(rustc cargo)
32+
[[ "$__os_debian_ver" -le 11 ]] && depends+=(rustc-mozilla cargo-mozilla)
33+
getDepends "${depends[@]}"
34+
}
35+
36+
function sources_ja2-stracciatella() {
37+
gitPullOrClone
38+
}
39+
40+
function build_ja2-stracciatella() {
41+
rpSwap on 3072
42+
cmake . -DCMAKE_INSTALL_PREFIX="$md_inst"
43+
make
44+
rpSwap off
45+
md_ret_require="$md_build/ja2"
46+
strip "$md_build/ja2"
47+
}
48+
49+
function install_ja2-stracciatella() {
50+
md_ret_files=(
51+
'ja2'
52+
'externalized'
53+
'mods'
54+
'unittests'
55+
)
56+
}
57+
58+
function configure_ja2-stracciatella() {
59+
addPort "$md_id" "ja2-stracciatella" "Jagged Alliance 2" "$md_inst/ja2 -fullscreen"
60+
}

0 commit comments

Comments
 (0)