diff options
author | B. Watson <yalhcru@gmail.com> | 2021-10-17 17:10:53 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-29 17:07:15 +0700 |
commit | 5eb6ce46c5980e63f9888af21be1abe18714d75e (patch) | |
tree | 1aae1285f24c6b5ccda68a88344011c84e545c52 /games/ufoai/mkicons.sh | |
parent | 7ad090fd48be0c12e4ea59a4e92c1f6f13286a0d (diff) | |
download | slackbuilds-5eb6ce46c5980e63f9888af21be1abe18714d75e.tar.gz |
games/ufoai: Fix -current build.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/ufoai/mkicons.sh')
-rw-r--r-- | games/ufoai/mkicons.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/games/ufoai/mkicons.sh b/games/ufoai/mkicons.sh new file mode 100644 index 0000000000..a0c886f91a --- /dev/null +++ b/games/ufoai/mkicons.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +# create PNG icons for ufoai. +# requires icoutils and perl-rename from SBo. +# this is a support script, not to be run from within the SlackBuild. +# please do not remove this from git! + +SRC=${TMP:-/tmp}/SBo/ufoai-${VERSION:-2.5} + +mkdir -p icons +cd icons +for i in $SRC/build/projects/*.ico; do + name="$( basename $i .ico )" + mkdir -p $name + ( cd $name + icotool -x $i + rename.pl 's,.*_(\d+)x.*,$1.png,' * + ) +done + +# upstream doesn't ship 64x64 icons, let's make them. +convert -resize 64x64 ufo/256.png ufo/64.png +convert -resize 64x64 ufoded/256.png ufoded/64.png + +# the radiant icon is tiny, make a better one. +mkdir -p uforadiant +composite radiant/32.png ufo/64.png -geometry +16+28 uforadiant/64.png +convert -resize 48x48 uforadiant/64.png uforadiant/48.png +convert -resize 32x32 uforadiant/64.png uforadiant/32.png +convert -resize 16x16 uforadiant/64.png uforadiant/16.png +rm -rf radiant |