Commit 73176346 authored by Antoine Le Gonidec's avatar Antoine Le Gonidec Committed by Antoine Le Gonidec

Stellaris — New DLC: Leviathans Story Pack

parent 61aaab22
#!/bin/sh
set -o errexit
###
# Copyright (c) 2015-2019, Antoine "vv221/vv222" 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.
###
###
# Stellaris - Leviathans Story Pack
# build native packages from the original installers
# send your bug reports to vv221@dotslashplay.it
###
script_version=20190705.1
# Set game-specific variables
GAME_ID='stellaris'
GAME_NAME='Stellaris - Leviathans Story Pack'
ARCHIVE_GOG='stellaris_leviathans_story_pack_2_3_3_30733.sh'
ARCHIVE_GOG_URL='https://www.gog.com/game/stellaris_leviathans_story_pack'
ARCHIVE_GOG_MD5='53a3ad3858a49667a2a69265e26e1fda'
ARCHIVE_GOG_SIZE='59000'
ARCHIVE_GOG_VERSION='2.3.3-gog30733'
ARCHIVE_GOG_TYPE='mojosetup_unzip'
ARCHIVE_GOG_OLD0='stellaris_leviathans_story_pack_2_3_2_1_30253.sh'
ARCHIVE_GOG_OLD0_MD5='decab3b263cb2c08a19ab7c91574bb23'
ARCHIVE_GOG_OLD0_SIZE='59000'
ARCHIVE_GOG_OLD0_VERSION='2.3.2.1-gog30253'
ARCHIVE_GOG_OLD0_TYPE='mojosetup_unzip'
ARCHIVE_GAME_MAIN_PATH='data/noarch/game'
ARCHIVE_GAME_MAIN_FILES='dlc/dlc012_leviathans'
PACKAGES_LIST='PKG_MAIN'
PKG_MAIN_ID="${GAME_ID}-leviathans-story-pack"
PKG_MAIN_DEPS="$GAME_ID"
# Load common functions
target_version='2.11'
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
# shellcheck source=play.it-2/lib/libplayit2.sh
. "$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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment