diff --git a/engines/sc2/assets/sc2.sh b/engines/sc2/assets/sc2.sh new file mode 100755 index 000000000..f1af4461e --- /dev/null +++ b/engines/sc2/assets/sc2.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +./uqm --contentdir=./content "$@" diff --git a/engines/sc2/build.sh b/engines/sc2/build.sh new file mode 100755 index 000000000..2f71db664 --- /dev/null +++ b/engines/sc2/build.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# CLONE PHASE +git clone https://git.code.sf.net/p/sc2/uqm source +pushd source +git checkout 102099 +popd + +# BUILD PHASE +cp -rfv ./config.state source/sc2 +pushd "source/sc2" +./build.sh uqm reprocess_config +./build.sh uqm +./build.sh uqm install +popd + +# COPY PHASE +cp -v /usr/local/games/lib/uqm/uqm "$diststart/2645580/dist/" +cp -v assets/sc2.sh "$diststart/2645580/dist/" diff --git a/engines/sc2/config.state b/engines/sc2/config.state new file mode 100644 index 000000000..6d25b66ce --- /dev/null +++ b/engines/sc2/config.state @@ -0,0 +1,14 @@ +CHOICE_debug_VALUE='debug' +CHOICE_graphics_VALUE='sdl2' +CHOICE_sound_VALUE='mixsdl' +CHOICE_mikmod_VALUE='internal' +CHOICE_ovcodec_VALUE='standard' +CHOICE_netplay_VALUE='full' +CHOICE_joystick_VALUE='enabled' +CHOICE_ioformat_VALUE='stdio_zip' +CHOICE_accel_VALUE='asm' +CHOICE_threadlib_VALUE='sdl' +INPUT_install_prefix_VALUE='/usr/local/games' +INPUT_install_bindir_VALUE='$prefix/bin' +INPUT_install_libdir_VALUE='$prefix/lib' +INPUT_install_sharedir_VALUE='$prefix/share' diff --git a/engines/sc2/env.sh b/engines/sc2/env.sh new file mode 100755 index 000000000..89a9cfe89 --- /dev/null +++ b/engines/sc2/env.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export STEAM_APP_ID_LIST="2645580" +export LICENSE_PATH="./source/sc2/COPYING" diff --git a/metadata/packagessniper_v2.json b/metadata/packagessniper_v2.json index ed8942a14..53871fca5 100644 --- a/metadata/packagessniper_v2.json +++ b/metadata/packagessniper_v2.json @@ -8573,6 +8573,14 @@ "cloudIssue": true, "cloudIssueReason": "saves_not_compatible", "app_id": "1665260" + }, + { + "game_name": "Free Stars: The Ur-Quan Masters", + "download": [], + "command": "./sc2.sh", + "engine_name": "The Ur-Quan Masters", + "cloudNotAvailable": true, + "app_id": "2645580" } ], "engines": [ @@ -10207,6 +10215,16 @@ "license_link": "https://github.com/klei1984/max/blob/master/LICENSE", "controllerNotSupported": true, "engine_name": "M.A.X." + }, + { + "engine_link": "https://sourceforge.net/projects/sc2/", + "version": "0317272", + "author": "d10sfan", + "author_link": "https://github.com/d10sfan", + "license": "GPLv2", + "license_link": "https://sourceforge.net/p/sc2/uqm/ci/main/tree/sc2/COPYING", + "controllerNotSupported": true, + "engine_name": "The Ur-Quan Masters" } ], "default_engine": { @@ -10464,4 +10482,4 @@ "value": "Save Format Not Compatible" } ] -} \ No newline at end of file +}