Commit 107d68b5 authored by Antoine Le Gonidec's avatar Antoine Le Gonidec Committed by Antoine Le Gonidec

Cornerstone: The Song of Tyrim — Syntax update

* Update script to 2.11 syntax
* Improve icons handling
parent 8fe0210a
#!/bin/sh -e
#!/bin/sh
set -o errexit
###
......@@ -35,7 +35,7 @@ set -o errexit
# send your bug reports to mopi@dotslashplay.it
###
script_version=20180913.1
script_version=20190724.1
# Set game-specific variables
......@@ -75,7 +75,7 @@ PKG_BIN_DEPS="$PKG_DATA_ID glibc libstdc++ glu xcursor pulseaudio alsa"
# Load common functions
target_version='2.10'
target_version='2.11'
if [ -z "$PLAYIT_LIB2" ]; then
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
......@@ -98,7 +98,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
printf 'libplayit2.sh not found.\n'
exit 1
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
# shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......@@ -107,17 +107,19 @@ extract_data_from "$SOURCE_ARCHIVE"
prepare_package_layout
rm --recursive "$PLAYIT_WORKDIR/gamedata"
# Get icon
PKG='PKG_DATA'
icons_get_from_package 'APP_MAIN'
# Write launchers
PKG='PKG_BIN'
write_launcher 'APP_MAIN'
launchers_write 'APP_MAIN'
# Build package
PKG='PKG_DATA'
icons_linking_postinst 'APP_MAIN'
write_metadata 'PKG_DATA'
write_metadata 'PKG_BIN'
write_metadata
build_pkg
# Clean up
......
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