aboutsummaryrefslogtreecommitdiff
path: root/games/nevernoid
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-10-25 16:22:55 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-29 17:07:24 +0700
commit8ca966109ccf2020a3d06f2bd1f1feed7b799a85 (patch)
tree52b050153957641be83b96b61831c5b560cfe472 /games/nevernoid
parent6044dfe2442b2e22f7ad23b3ae4fe46e57bb46dc (diff)
games/nevernoid: New-style icons.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/nevernoid')
-rw-r--r--games/nevernoid/README2
-rw-r--r--games/nevernoid/doinst.sh9
-rw-r--r--games/nevernoid/nevernoid.SlackBuild21
-rw-r--r--games/nevernoid/nevernoid.desktop3
-rw-r--r--games/nevernoid/nevernoid.info10
5 files changed, 31 insertions, 14 deletions
diff --git a/games/nevernoid/README b/games/nevernoid/README
index 552926cf13354..54257ee362db5 100644
--- a/games/nevernoid/README
+++ b/games/nevernoid/README
@@ -1,4 +1,4 @@
-nevernoid - clone of the game "Arkanoid", with extra powerups.
+nevernoid (clone of the game "Arkanoid" with extra powerups)
Nevernoid is distributed as binary-only freeware; this SlackBuild
script simply packages the binary in a Slack-friendly way, including
diff --git a/games/nevernoid/doinst.sh b/games/nevernoid/doinst.sh
new file mode 100644
index 0000000000000..3e5691a052b5b
--- /dev/null
+++ b/games/nevernoid/doinst.sh
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/games/nevernoid/nevernoid.SlackBuild b/games/nevernoid/nevernoid.SlackBuild
index f10ee9fd3cb91..556e5a93595d0 100644
--- a/games/nevernoid/nevernoid.SlackBuild
+++ b/games/nevernoid/nevernoid.SlackBuild
@@ -6,11 +6,13 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20211025 bkw: BUILD=3, new-style icons.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nevernoid
VERSION=${VERSION:-1.2}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +24,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -54,7 +53,10 @@ tar xvf $CWD/$ARCHIVE
cd $PRGNAM
# Upstream fixed a bug in one of the maps, as a separate download.
-unzip $CWD/"watch the birdy.zip"
+# Some dumb browsers might save the file with %20 where the spaces belong.
+BIRDY="$CWD/watch the birdy.zip"
+[ ! -e "$BIRDY" ] && BIRDY="$CWD/watch%20the%20birdy.zip"
+unzip "$BIRDY"
mv "watch the birdy.map" maps/
chown -R root:root .
@@ -83,8 +85,15 @@ cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications
# in the gimp. Took about 10 minutes plus lots of cussing & head-scratching.
# If anyone who actually knows anything at all about graphic design would
# like to do a better icon, email me.
+for px in 16 32 48 64; do
+ size=${px}x${px}
+ dir=$PKG/usr/share/icons/hicolor/$size/apps
+ mkdir -p $dir
+ convert -resize $size $CWD/$PRGNAM.png $dir/$PRGNAM.png
+done
+
mkdir -p $PKG/usr/share/pixmaps
-cp $CWD/$PRGNAM.png $PKG/usr/share/pixmaps
+ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/games/nevernoid/nevernoid.desktop b/games/nevernoid/nevernoid.desktop
index e75f868eea5dd..c08f3e4639766 100644
--- a/games/nevernoid/nevernoid.desktop
+++ b/games/nevernoid/nevernoid.desktop
@@ -1,8 +1,7 @@
[Desktop Entry]
Name=NeverNoid
Comment=Clone of the Arkanoid arcade game
-Exec=nevernoid
+Exec=/usr/games/nevernoid
Type=Application
Icon=nevernoid
-GenericName=NeverNoid
Categories=Game;ArcadeGame;
diff --git a/games/nevernoid/nevernoid.info b/games/nevernoid/nevernoid.info
index 3ddcf1679f33a..0fa58c465a819 100644
--- a/games/nevernoid/nevernoid.info
+++ b/games/nevernoid/nevernoid.info
@@ -1,12 +1,12 @@
PRGNAM="nevernoid"
VERSION="1.2"
-HOMEPAGE="http://www.doubledev.com/nevernoid.html"
-DOWNLOAD="http://www.doubledev.com/downloads/NeverNoid_v12_linux_x86.tar.gz \
- http://www.doubledev.com/downloads/watch%20the%20birdy.zip"
+HOMEPAGE="https://www.doubledev.com/nevernoid.html"
+DOWNLOAD="https://www.doubledev.com/downloads/NeverNoid_v12_linux_x86.tar.gz \
+ https://www.doubledev.com/downloads/watch%20the%20birdy.zip"
MD5SUM="ce70344326b85c87907bba42e09c3f58 \
e943ff6c8a189bc09dfe6963a916eaee"
-DOWNLOAD_x86_64="http://www.doubledev.com/downloads/NeverNoid_v12_linux_x64.tar.gz \
- http://www.doubledev.com/downloads/watch%20the%20birdy.zip"
+DOWNLOAD_x86_64="https://www.doubledev.com/downloads/NeverNoid_v12_linux_x64.tar.gz \
+ https://www.doubledev.com/downloads/watch%20the%20birdy.zip"
MD5SUM_x86_64="3a754706e414c3958457b69833a0e778 \
e943ff6c8a189bc09dfe6963a916eaee"
REQUIRES=""