summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-10-21 03:27:03 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-29 17:07:21 +0700
commit588cbe19885595689cc1dc8e3e8100a7477880f3 (patch)
tree5df3bd14e977317110536c35634e7239d07560ed
parent10d922d1345adc801616b4d2c046da1ab92a5db3 (diff)
downloadslackbuilds-588cbe19885595689cc1dc8e3e8100a7477880f3.tar.gz
games/penguin-command: New-style icons.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/penguin-command/doinst.sh6
-rw-r--r--games/penguin-command/icons/128.pngbin0 -> 23871 bytes
-rw-r--r--games/penguin-command/icons/16.pngbin0 -> 698 bytes
-rw-r--r--games/penguin-command/icons/32.pngbin0 -> 2114 bytes
-rw-r--r--games/penguin-command/icons/48.pngbin0 -> 4309 bytes
-rw-r--r--games/penguin-command/manpage.diff32
-rw-r--r--games/penguin-command/penguin-command.SlackBuild31
-rw-r--r--games/penguin-command/penguin-command.desktop2
-rw-r--r--games/penguin-command/penguin-command.info4
-rw-r--r--games/penguin-command/penguin-command.pngbin2168 -> 0 bytes
10 files changed, 61 insertions, 14 deletions
diff --git a/games/penguin-command/doinst.sh b/games/penguin-command/doinst.sh
index 5fb28930db..3e5691a052 100644
--- a/games/penguin-command/doinst.sh
+++ b/games/penguin-command/doinst.sh
@@ -1,3 +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/penguin-command/icons/128.png b/games/penguin-command/icons/128.png
new file mode 100644
index 0000000000..ff5ab9dd3e
--- /dev/null
+++ b/games/penguin-command/icons/128.png
Binary files differ
diff --git a/games/penguin-command/icons/16.png b/games/penguin-command/icons/16.png
new file mode 100644
index 0000000000..398d213a25
--- /dev/null
+++ b/games/penguin-command/icons/16.png
Binary files differ
diff --git a/games/penguin-command/icons/32.png b/games/penguin-command/icons/32.png
new file mode 100644
index 0000000000..b5a2fad106
--- /dev/null
+++ b/games/penguin-command/icons/32.png
Binary files differ
diff --git a/games/penguin-command/icons/48.png b/games/penguin-command/icons/48.png
new file mode 100644
index 0000000000..602486b20c
--- /dev/null
+++ b/games/penguin-command/icons/48.png
Binary files differ
diff --git a/games/penguin-command/manpage.diff b/games/penguin-command/manpage.diff
new file mode 100644
index 0000000000..7aeeb6c202
--- /dev/null
+++ b/games/penguin-command/manpage.diff
@@ -0,0 +1,32 @@
+diff -Naur penguin-command-1.6.11/penguin-command.6 penguin-command-1.6.11.patched/penguin-command.6
+--- penguin-command-1.6.11/penguin-command.6 2007-03-18 11:21:13.000000000 -0400
++++ penguin-command-1.6.11.patched/penguin-command.6 2021-10-21 03:45:41.985380757 -0400
+@@ -1,5 +1,5 @@
+ .\" Hey, EMACS: -*- nroff -*-
+-.TH PENGUIN-COMMAND 6 "November 10, 2002"
++.TH PENGUIN-COMMAND 6 "October 2021" "1.6.11" "SlackBuilds.org"
+ .\" Please adjust this date whenever revising the manpage.
+ .SH NAME
+ penguin-command \- a missile command clone
+@@ -29,5 +29,20 @@
+ .TP
+ .B \-\-help, \-h
+ Display help.
++.SH CONTROLS
++Move the targeting crosshair with the mouse.
++.PP
++Fire missiles from the left/center/right missile bases with either
++the left/middle/right mouse buttons, or the A S D keys on the keyboard.
++.PP
++If you don't have a middle mouse button, or if it doesn't work in X,
++you should be able to enable chording (left+right together = middle)
++using \fBxinput\fR(1). Or you can just use the keyboard instead of the
++mouse buttons.
++.SH FILES
++.TP
++.B $HOME/.penguin\-command
++Per\-user config and high score save file.
+ .SH AUTHOR
+-This manual page was written by Karl Bartel <karlb@gmx.net>.
++This manual page was written by Karl Bartel <karlb@gmx.net> and
++updated by B. Watson <yalhcru@gmail.com>.
diff --git a/games/penguin-command/penguin-command.SlackBuild b/games/penguin-command/penguin-command.SlackBuild
index 6561c10bb6..38b6ea42f8 100644
--- a/games/penguin-command/penguin-command.SlackBuild
+++ b/games/penguin-command/penguin-command.SlackBuild
@@ -6,11 +6,15 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20211021 bkw: BUILD=2
+# - new-style icons.
+# - add FILES and CONTROLS sections to the man page.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=penguin-command
VERSION=${VERSION:-1.6.11}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +26,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
@@ -57,11 +58,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# I included this optional patch because the game doesn't store a
# fullscreen/windowed preference in its config file, and because on
@@ -71,6 +69,9 @@ if [ "${WINDOWED:-no}" = "yes" ]; then
patch -p1 < $CWD/windowed_default.diff
fi
+# Expand the man page slightly.
+patch -p1 < $CWD/manpage.diff
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -92,9 +93,17 @@ gzip $PKG/usr/man/man6/*.6
mkdir -p $PKG/usr/share/applications
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
-# icon converted from data/gfx/icon.xpm
+# icons extracted from macosx/icon.icns in source.
+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
-cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
+ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/games/penguin-command/penguin-command.desktop b/games/penguin-command/penguin-command.desktop
index 54a06a9866..56d6853760 100644
--- a/games/penguin-command/penguin-command.desktop
+++ b/games/penguin-command/penguin-command.desktop
@@ -2,7 +2,7 @@
Name=Penguin-Command
Type=Application
Comment=Missile Attack game
-Exec=penguin-command
+Exec=/usr/games/penguin-command
Icon=penguin-command
Terminal=false
Categories=Game;ArcadeGame;
diff --git a/games/penguin-command/penguin-command.info b/games/penguin-command/penguin-command.info
index 6eceae7f0b..ee71ba22c0 100644
--- a/games/penguin-command/penguin-command.info
+++ b/games/penguin-command/penguin-command.info
@@ -1,7 +1,7 @@
PRGNAM="penguin-command"
VERSION="1.6.11"
-HOMEPAGE="http://www.linux-games.com/penguin-command/"
-DOWNLOAD="http://downloads.sourceforge.net/project/penguin-command/penguin-command/1.6.11/penguin-command-1.6.11.tar.gz"
+HOMEPAGE="https://sourceforge.net/projects/penguin-command/"
+DOWNLOAD="https://downloads.sourceforge.net/project/penguin-command/penguin-command/1.6.11/penguin-command-1.6.11.tar.gz"
MD5SUM="4dcf0073d62f28e47af18a922a1badc3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
diff --git a/games/penguin-command/penguin-command.png b/games/penguin-command/penguin-command.png
deleted file mode 100644
index de182fb5fe..0000000000
--- a/games/penguin-command/penguin-command.png
+++ /dev/null
Binary files differ