summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-06-09 17:44:18 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-09 18:53:21 +0200
commit340f6cde2d86c08b94eac831d186c5efcec99acb (patch)
treea891923230039d4e8b2aa744ecccb1b94fa28591 /Ports
parent6f92d1e63957b524746c12fa9a31e96cd3296a6f (diff)
downloadserenity-340f6cde2d86c08b94eac831d186c5efcec99acb.zip
Ports: Use shared icon logic for ScummVM
Diffstat (limited to 'Ports')
-rwxr-xr-xPorts/scummvm/package.sh11
1 files changed, 1 insertions, 10 deletions
diff --git a/Ports/scummvm/package.sh b/Ports/scummvm/package.sh
index 9e4ecc0c9a..3dbca4fb45 100755
--- a/Ports/scummvm/package.sh
+++ b/Ports/scummvm/package.sh
@@ -15,16 +15,7 @@ configopts="
launcher_name=ScummVM
launcher_category=Games
launcher_command=/usr/local/bin/scummvm
+icon_file=icons/scummvm.ico
export FREETYPE2_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/freetype2"
export FREETYPE2_LIBS="-lfreetype"
-
-post_install() {
- if command -v convert >/dev/null; then
- run convert "icons/scummvm.ico[0]" app-32x32.png
- run convert "icons/scummvm.ico[1]" app-16x16.png
- target_binary="${SERENITY_INSTALL_ROOT}/usr/local/bin/scummvm"
- run objcopy --add-section serenity_icon_s="app-16x16.png" "${target_binary}"
- run objcopy --add-section serenity_icon_m="app-32x32.png" "${target_binary}"
- fi
-}