summaryrefslogtreecommitdiffstats
path: root/games/yar/yar.SlackBuild
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2021-10-17 17:28:24 -0400
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-29 17:07:15 +0700
commite3d949db0beb2d100710f27d9c9455844a8fc43e (patch)
tree56806f69d6e0c19c39241320fab1ac9d71bc7e8f /games/yar/yar.SlackBuild
parent5eb6ce46c5980e63f9888af21be1abe18714d75e (diff)
downloadslackbuilds-e3d949db0beb2d100710f27d9c9455844a8fc43e.tar.gz
slackbuilds-e3d949db0beb2d100710f27d9c9455844a8fc43e.tar.xz
games/yar: Better icons.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/yar/yar.SlackBuild')
-rw-r--r--games/yar/yar.SlackBuild22
1 files changed, 12 insertions, 10 deletions
diff --git a/games/yar/yar.SlackBuild b/games/yar/yar.SlackBuild
index 322b6440cc..d76e2fc3fb 100644
--- a/games/yar/yar.SlackBuild
+++ b/games/yar/yar.SlackBuild
@@ -6,19 +6,14 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20211017 bkw: BUILD=3, mo' better icons.
# 20211011 bkw: BUILD=2, new-style icon
-# TODO: make a bigger/better icon. The game doesn't have any image
-# files, it draws everything algorithmically, so I have to take
-# a screenshot. Except I'm on -current, and the fucking X server
-# freezes when I try to do that. Maybe this will get fixed, but I'm
-# not holding my breath.
-
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=yar
VERSION=${VERSION:-0.99}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -85,9 +80,16 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# icon made from a screenshot of the game
-mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps $PKG/usr/share/pixmaps
-cat $CWD/$PRGNAM.png > $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png
+# icon made from screenshots of the game
+for i in $CWD/icons/*.png; do
+ px=$( basename $i | cut -d. -f1 )
+ size=${px}x${px}
+ dir=$PKG/usr/share/icons/hicolor/$size/apps
+ mkdir -p $dir
+ cat $i > $dir/$PRGNAM.png
+done
+
+mkdir -p $PKG/usr/share/pixmaps
ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
# .desktop written for this build