aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-10-17 17:28:24 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-29 17:07:15 +0700
commite3d949db0beb2d100710f27d9c9455844a8fc43e (patch)
tree56806f69d6e0c19c39241320fab1ac9d71bc7e8f /games
parent5eb6ce46c5980e63f9888af21be1abe18714d75e (diff)
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')
-rw-r--r--games/yar/icons/16.pngbin0 -> 2327 bytes
-rw-r--r--games/yar/icons/32.pngbin0 -> 2861 bytes
-rw-r--r--games/yar/icons/48.pngbin0 -> 3525 bytes
-rw-r--r--games/yar/icons/64.pngbin0 -> 1839 bytes
-rw-r--r--games/yar/yar.SlackBuild22
-rw-r--r--games/yar/yar.desktop2
-rw-r--r--games/yar/yar.pngbin795 -> 0 bytes
7 files changed, 13 insertions, 11 deletions
diff --git a/games/yar/icons/16.png b/games/yar/icons/16.png
new file mode 100644
index 000000000000..4b0c16aff5a5
--- /dev/null
+++ b/games/yar/icons/16.png
Binary files differ
diff --git a/games/yar/icons/32.png b/games/yar/icons/32.png
new file mode 100644
index 000000000000..fde58bf7bd45
--- /dev/null
+++ b/games/yar/icons/32.png
Binary files differ
diff --git a/games/yar/icons/48.png b/games/yar/icons/48.png
new file mode 100644
index 000000000000..9652e5c14c72
--- /dev/null
+++ b/games/yar/icons/48.png
Binary files differ
diff --git a/games/yar/icons/64.png b/games/yar/icons/64.png
new file mode 100644
index 000000000000..92d31d1bab03
--- /dev/null
+++ b/games/yar/icons/64.png
Binary files differ
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
diff --git a/games/yar/yar.desktop b/games/yar/yar.desktop
index 03841d9cd071..8fbdd58baa0f 100644
--- a/games/yar/yar.desktop
+++ b/games/yar/yar.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=Yar's Revenge
Comment=Atari 2600 classic
-Exec=yar
+Exec=/usr/games/yar
Icon=yar
Terminal=false
Type=Application
diff --git a/games/yar/yar.png b/games/yar/yar.png
deleted file mode 100644
index 53bd952d9e42..000000000000
--- a/games/yar/yar.png
+++ /dev/null
Binary files differ