aboutsummaryrefslogtreecommitdiff
path: root/games/yar/yar.SlackBuild
diff options
context:
space:
mode:
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 322b6440ccb0..d76e2fc3fbaf 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