summaryrefslogtreecommitdiff
path: root/Ports/scummvm/package.sh
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-08-02 12:50:03 +0200
committerLinus Groh <mail@linusgroh.de>2022-08-02 13:26:49 +0100
commitb44275569be4d9e0869ba58b5126d1bd41ac1a39 (patch)
tree13b0b595d859af26d1c0d4ffd660188b542ff443 /Ports/scummvm/package.sh
parente83d03038a984119659a9cd748a5b8d1ff2ec9cb (diff)
downloadserenity-b44275569be4d9e0869ba58b5126d1bd41ac1a39.zip
Ports: Download and install ScummVM game icons
Diffstat (limited to 'Ports/scummvm/package.sh')
-rwxr-xr-xPorts/scummvm/package.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/Ports/scummvm/package.sh b/Ports/scummvm/package.sh
index 440c40bac9..10ab632737 100755
--- a/Ports/scummvm/package.sh
+++ b/Ports/scummvm/package.sh
@@ -28,3 +28,20 @@ function post_configure() {
unset OPENGL_CFLAGS
unset SDL_CFLAGS
}
+
+function post_install() {
+ icons_build_dir="${PORT_BUILD_DIR}/scummvm-icons"
+ if [ ! -d "${icons_build_dir}" ]; then
+ echo 'Downloading & building an icon pack for ScummVM...'
+
+ # Unfortunately, `gen-set.py` prevents us from fixating on a commit ID since it
+ # checks whether the git repository is up-to-date. Also, we cannot perform a
+ # shallow clone since that will mess up the icon list.
+ cd "$(dirname ${icons_build_dir})"
+ git clone https://github.com/scummvm/scummvm-icons "$(basename ${icons_build_dir})"
+ cd "$(basename ${icons_build_dir})"
+
+ ./gen-set.py 19700101
+ cp gui-icons-*.dat "${SERENITY_INSTALL_ROOT}/usr/local/share/scummvm/gui-icons.dat"
+ fi
+}