Skip to content

Commit a805de9

Browse files
committed
add Jagged Alliance 2 Stracciatella
Signed-off-by: Richard Fröhning <[email protected]>
1 parent 5f635a6 commit a805de9

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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"
14+
rp_module_licence="SFI-SCLA https://raw.githubusercontent.com/ja2-stracciatella/ja2-stracciatella/master/SFI%20Source%20Code%20license%20agreement.txt"
15+
rp_module_repo="git https://github.com/ja2-stracciatella/ja2-stracciatella.git v0.21.0"
16+
rp_module_flags="sdl2"
17+
rp_module_section="exp"
18+
19+
function depends_ja2-stracciatella() {
20+
local depends=(cmake libsdl2-dev)
21+
[[ "$__os_debian_ver" -gt 11 ]] && depends+=(rustc cargo)
22+
[[ "$__os_debian_ver" -le 11 ]] && depends+=(rustc-mozilla cargo-mozilla)
23+
getDepends "${depends[@]}"
24+
}
25+
26+
function sources_ja2-stracciatella() {
27+
gitPullOrClone
28+
}
29+
30+
function build_ja2-stracciatella() {
31+
cmake . -DCMAKE_INSTALL_PREFIX="$md_inst"
32+
make
33+
md_ret_require="$md_build/ja2"
34+
strip "$md_build/ja2"
35+
}
36+
37+
function install_ja2-stracciatella() {
38+
md_ret_files=(
39+
'ja2'
40+
'externalized'
41+
'mods'
42+
'unittests'
43+
)
44+
}
45+
46+
function configure_ja2-stracciatella() {
47+
addPort "$md_id" "ja2-stracciatella" "Ja2-Stracciatella" "$md_inst/ja2 -fullscreen"
48+
}

0 commit comments

Comments
 (0)