From e3d949db0beb2d100710f27d9c9455844a8fc43e Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 17 Oct 2021 17:28:24 -0400 Subject: games/yar: Better icons. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- games/yar/icons/16.png | Bin 0 -> 2327 bytes games/yar/icons/32.png | Bin 0 -> 2861 bytes games/yar/icons/48.png | Bin 0 -> 3525 bytes games/yar/icons/64.png | Bin 0 -> 1839 bytes games/yar/yar.SlackBuild | 22 ++++++++++++---------- games/yar/yar.desktop | 2 +- games/yar/yar.png | Bin 795 -> 0 bytes 7 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 games/yar/icons/16.png create mode 100644 games/yar/icons/32.png create mode 100644 games/yar/icons/48.png create mode 100644 games/yar/icons/64.png delete mode 100644 games/yar/yar.png (limited to 'games/yar') diff --git a/games/yar/icons/16.png b/games/yar/icons/16.png new file mode 100644 index 0000000000..4b0c16aff5 Binary files /dev/null and b/games/yar/icons/16.png differ diff --git a/games/yar/icons/32.png b/games/yar/icons/32.png new file mode 100644 index 0000000000..fde58bf7bd Binary files /dev/null and b/games/yar/icons/32.png differ diff --git a/games/yar/icons/48.png b/games/yar/icons/48.png new file mode 100644 index 0000000000..9652e5c14c Binary files /dev/null and b/games/yar/icons/48.png differ diff --git a/games/yar/icons/64.png b/games/yar/icons/64.png new file mode 100644 index 0000000000..92d31d1bab Binary files /dev/null and b/games/yar/icons/64.png differ 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 diff --git a/games/yar/yar.desktop b/games/yar/yar.desktop index 03841d9cd0..8fbdd58baa 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 53bd952d9e..0000000000 Binary files a/games/yar/yar.png and /dev/null differ -- cgit v1.2.3