From dfdfd576d8d293a0a07a12a08922b59603e9ed0a Mon Sep 17 00:00:00 2001 From: vv221 Date: Sat, 29 Sep 2018 17:22:54 +0200 Subject: [PATCH 1/3] =?UTF-8?q?Baldur=E2=80=99s=20Gate=20-=20Enhanced=20Ed?= =?UTF-8?q?ition=20=E2=80=94=20Handle=20Siege=20of=20Dragonspear=20DLC=20w?= =?UTF-8?q?ith=20a=20dedicated=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...1-enhanced-edition-siege-of-dragonspear.sh | 108 ++++++++++++++++++ .../play-baldurs-gate-1-enhanced-edition.sh | 26 +---- 2 files changed, 109 insertions(+), 25 deletions(-) create mode 100755 play.it-2/games/play-baldurs-gate-1-enhanced-edition-siege-of-dragonspear.sh diff --git a/play.it-2/games/play-baldurs-gate-1-enhanced-edition-siege-of-dragonspear.sh b/play.it-2/games/play-baldurs-gate-1-enhanced-edition-siege-of-dragonspear.sh new file mode 100755 index 00000000..1176b823 --- /dev/null +++ b/play.it-2/games/play-baldurs-gate-1-enhanced-edition-siege-of-dragonspear.sh @@ -0,0 +1,108 @@ +#!/bin/sh -e +set -o errexit + +### +# Copyright (c) 2015-2018, Antoine Le Gonidec +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# +# This software is provided by the copyright holders and contributors "as is" +# and any express or implied warranties, including, but not limited to, the +# implied warranties of merchantability and fitness for a particular purpose +# are disclaimed. In no event shall the copyright holder or contributors be +# liable for any direct, indirect, incidental, special, exemplary, or +# consequential damages (including, but not limited to, procurement of +# substitute goods or services; loss of use, data, or profits; or business +# interruption) however caused and on any theory of liability, whether in +# contract, strict liability, or tort (including negligence or otherwise) +# arising in any way out of the use of this software, even if advised of the +# possibility of such damage. +### + +### +# Baldur’s Gate - Enhanced Edition - Siege of Dragonspear +# build native packages from the original installers +# send your bug reports to vv221@dotslashplay.it +### + +script_version=20180929.1 + +# Set game-specific variables + +GAME_ID='baldurs-gate-1-enhanced-edition' +GAME_NAME='Baldur’s Gate - Enhanced Edition - Siege of Dragonspear' + +ARCHIVE_GOG='baldur_s_gate_siege_of_dragonspear_en_2_3_0_4_20148.sh' +ARCHIVE_GOG_URL='https://www.gog.com/game/baldurs_gate_siege_of_dragonspear' +ARCHIVE_GOG_MD5='152225ec02c87e70bfb59970ac33b755' +ARCHIVE_GOG_VERSION='2.3.0.4-gog20148' +ARCHIVE_GOG_TYPE='mojosetup_unzip' +ARCHIVE_GOG_SIZE='1900000' + +ARCHIVE_DOC_DATA_PATH='data/noarch/docs' +ARCHIVE_DOC_DATA_FILES='*' + +ARCHIVE_GAME_MAIN_PATH='data/noarch/game' +ARCHIVE_GAME_MAIN_FILES='sod-dlc.zip' + +PACKAGES_LIST='PKG_MAIN' + +PKG_MAIN_ID="${GAME_ID}-siege-of-dragonspear" +PKG_MAIN_DEPS="$GAME_ID" + +# Load common functions + +target_version='2.10' + +if [ -z "$PLAYIT_LIB2" ]; then + : ${XDG_DATA_HOME:="$HOME/.local/share"} + for path in\ + "$PWD"\ + "$XDG_DATA_HOME/play.it"\ + '/usr/local/share/games/play.it'\ + '/usr/local/share/play.it'\ + '/usr/share/games/play.it'\ + '/usr/share/play.it' + do + if [ -e "$path/libplayit2.sh" ]; then + PLAYIT_LIB2="$path/libplayit2.sh" + break + fi + done +fi +if [ -z "$PLAYIT_LIB2" ]; then + printf '\n\033[1;31mError:\033[0m\n' + printf 'libplayit2.sh not found.\n' + exit 1 +fi +. "$PLAYIT_LIB2" + +# Extract game data + +extract_data_from "$SOURCE_ARCHIVE" +prepare_package_layout +rm --recursive "$PLAYIT_WORKDIR/gamedata" + +# Build package + +write_metadata +build_pkg + +# Clean up + +rm --recursive "$PLAYIT_WORKDIR" + +# Print instructions + +print_instructions + +exit 0 diff --git a/play.it-2/games/play-baldurs-gate-1-enhanced-edition.sh b/play.it-2/games/play-baldurs-gate-1-enhanced-edition.sh index f90dc22e..07f86177 100755 --- a/play.it-2/games/play-baldurs-gate-1-enhanced-edition.sh +++ b/play.it-2/games/play-baldurs-gate-1-enhanced-edition.sh @@ -34,7 +34,7 @@ set -o errexit # send your bug reports to vv221@dotslashplay.it ### -script_version=20180929.1 +script_version=20180929.2 # Set game-specific variables @@ -72,13 +72,6 @@ ARCHIVE_OPTIONAL_ICONS='baldurs-gate-1-enhanced-edition_icons.tar.gz' ARCHIVE_OPTIONAL_ICONS_URL='https://www.dotslashplay.it/ressources/baldurs-gate-1-enhanced-edition/' ARCHIVE_OPTIONAL_ICONS_MD5='58401cf80bc9f1a9e9a0896f5d74b02a' -# Siege of Dragonspear DLC (should be moved to a dedicated script) -ARCHIVE_GOG_SOD='baldur_s_gate_siege_of_dragonspear_en_2_3_0_4_20148.sh' -ARCHIVE_GOG_SOD_URL='https://www.gog.com/game/baldurs_gate_siege_of_dragonspear' -ARCHIVE_GOG_SOD_MD5='152225ec02c87e70bfb59970ac33b755' -ARCHIVE_GOG_SOD_VERSION='2.3.0.4-gog20148' -ARCHIVE_GOG_SOD_TYPE='mojosetup_unzip' - ARCHIVE_DOC_DATA_PATH='data/noarch/docs' ARCHIVE_DOC_DATA_FILES='*' @@ -162,12 +155,6 @@ ARCHIVE_MAIN="$ARCHIVE" archive_set 'ARCHIVE_ICONS' 'ARCHIVE_OPTIONAL_ICONS' ARCHIVE="$ARCHIVE_MAIN" -# Try to load Siege of Dragonspear DLC archive (should be moved to a dedicated script) - -ARCHIVE_MAIN="$ARCHIVE" -archive_set 'ARCHIVE_SOD' 'ARCHIVE_GOG_SOD' -ARCHIVE="$ARCHIVE_MAIN" - # Extract game data extract_data_from "$SOURCE_ARCHIVE" @@ -187,17 +174,6 @@ else fi rm --recursive "$PLAYIT_WORKDIR/gamedata" -# Include Siege of Dragonspear DLC (should be moved to a dedicated script) - -if [ "$ARCHIVE_SOD" ]; then - ( - ARCHIVE='ARCHIVE_SOD' - extract_data_from "$ARCHIVE_SOD" - ) - mv "$PLAYIT_WORKDIR/gamedata/data/noarch/game/sod-dlc.zip" "${PKG_DATA_PATH}/${PATH_GAME}" - rm --recursive "$PLAYIT_WORKDIR/gamedata" -fi - # Include libSSL 1.0.0 32-bit (Debian packages only) if [ "$ARCHIVE_LIBSSL32" ]; then -- GitLab From 9688ace4176400f3435a8d29ac200a8ab8baad01 Mon Sep 17 00:00:00 2001 From: vv221 Date: Sat, 29 Sep 2018 17:49:27 +0200 Subject: [PATCH 2/3] =?UTF-8?q?Baldur=E2=80=99s=20Gate=20-=20Enhanced=20Ed?= =?UTF-8?q?ition=20-=20Siege=20of=20Dragonspear=20=E2=80=94=20New=20archiv?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...gate-1-enhanced-edition-siege-of-dragonspear.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/play.it-2/games/play-baldurs-gate-1-enhanced-edition-siege-of-dragonspear.sh b/play.it-2/games/play-baldurs-gate-1-enhanced-edition-siege-of-dragonspear.sh index 1176b823..15a259a9 100755 --- a/play.it-2/games/play-baldurs-gate-1-enhanced-edition-siege-of-dragonspear.sh +++ b/play.it-2/games/play-baldurs-gate-1-enhanced-edition-siege-of-dragonspear.sh @@ -34,20 +34,26 @@ set -o errexit # send your bug reports to vv221@dotslashplay.it ### -script_version=20180929.1 +script_version=20180929.2 # Set game-specific variables GAME_ID='baldurs-gate-1-enhanced-edition' GAME_NAME='Baldur’s Gate - Enhanced Edition - Siege of Dragonspear' -ARCHIVE_GOG='baldur_s_gate_siege_of_dragonspear_en_2_3_0_4_20148.sh' +ARCHIVE_GOG='baldur_s_gate_siege_of_dragonspear_en_2_5_23121.sh' ARCHIVE_GOG_URL='https://www.gog.com/game/baldurs_gate_siege_of_dragonspear' -ARCHIVE_GOG_MD5='152225ec02c87e70bfb59970ac33b755' -ARCHIVE_GOG_VERSION='2.3.0.4-gog20148' +ARCHIVE_GOG_MD5='f0581c46e9d31a7ef53be88cf85eccc8' +ARCHIVE_GOG_VERSION='2.5.17.0-gog23121' ARCHIVE_GOG_TYPE='mojosetup_unzip' ARCHIVE_GOG_SIZE='1900000' +ARCHIVE_GOG_OLD0='baldur_s_gate_siege_of_dragonspear_en_2_3_0_4_20148.sh' +ARCHIVE_GOG_OLD0_MD5='152225ec02c87e70bfb59970ac33b755' +ARCHIVE_GOG_OLD0_VERSION='2.3.0.4-gog20148' +ARCHIVE_GOG_OLD0_TYPE='mojosetup_unzip' +ARCHIVE_GOG_OLD0_SIZE='1900000' + ARCHIVE_DOC_DATA_PATH='data/noarch/docs' ARCHIVE_DOC_DATA_FILES='*' -- GitLab From 5bc96a8b84a3f4a7171d8309b8c45a4ba96851f4 Mon Sep 17 00:00:00 2001 From: vv221 Date: Sun, 30 Sep 2018 14:44:43 +0200 Subject: [PATCH 3/3] =?UTF-8?q?Baldur=E2=80=99s=20Gate=20-=20Enhanced=20Ed?= =?UTF-8?q?ition=20=E2=80=94=20Add=20missing=20dependency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- play.it-2/games/play-baldurs-gate-1-enhanced-edition.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/play.it-2/games/play-baldurs-gate-1-enhanced-edition.sh b/play.it-2/games/play-baldurs-gate-1-enhanced-edition.sh index 07f86177..1f391efe 100755 --- a/play.it-2/games/play-baldurs-gate-1-enhanced-edition.sh +++ b/play.it-2/games/play-baldurs-gate-1-enhanced-edition.sh @@ -34,7 +34,7 @@ set -o errexit # send your bug reports to vv221@dotslashplay.it ### -script_version=20180929.2 +script_version=20180930.1 # Set game-specific variables @@ -105,12 +105,12 @@ PKG_DATA_DESCRIPTION='data' PKG_DATA_PROVIDE='baldurs-gate-enhanced-edition-data' PKG_BIN_ARCH='32' -PKG_BIN_DEPS="$PKG_L10N_ID $PKG_DATA_ID glibc libstdc++ glx openal libxrandr alsa" +PKG_BIN_DEPS="$PKG_L10N_ID $PKG_DATA_ID glibc libstdc++ glx openal libxrandr alsa xcursor" PKG_BIN_DEPS_ARCH='lib32-openssl-1.0' # Easier upgrade from packages generated with pre-20180926.3 scripts PKG_BIN_PROVIDE='baldurs-gate-enhanced-edition' # Keep compatibility with old archives -PKG_BIN_DEPS_GOG_OLD0="$PKG_L10N_ID $PKG_DATA_ID glibc libstdc++ glx openal libxrandr alsa json" +PKG_BIN_DEPS_GOG_OLD0="$PKG_L10N_ID $PKG_DATA_ID glibc libstdc++ glx openal libxrandr alsa xcursor json" PKG_BIN_DEPS_GOG_OLD1="$PKG_BIN_DEPS_GOG_OLD0" PKG_BIN_DEPS_GOG_OLD2="$PKG_BIN_DEPS_GOG_OLD0" -- GitLab