aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-10-20 05:02:53 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-29 17:07:19 +0700
commitd1ac86c9d4583a888facf5bc062e8ffff9170ec9 (patch)
tree72cee318fb4b664624b791056e66eb368ca96811 /games
parent3a2d309b99b14bc3fcbdc54c1b4c82134ec8b3b0 (diff)
games/pacman-arena: Fix -current build.
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/pacman-arena/doinst.sh6
-rw-r--r--games/pacman-arena/icons/128.pngbin0 -> 27147 bytes
-rw-r--r--games/pacman-arena/icons/16.pngbin0 -> 2288 bytes
-rw-r--r--games/pacman-arena/icons/32.pngbin0 -> 4319 bytes
-rw-r--r--games/pacman-arena/icons/48.pngbin0 -> 7494 bytes
-rw-r--r--games/pacman-arena/icons/64.pngbin0 -> 11310 bytes
-rw-r--r--games/pacman-arena/pacman-arena.676
-rw-r--r--games/pacman-arena/pacman-arena.SlackBuild35
-rw-r--r--games/pacman-arena/pacman-arena.desktop2
-rw-r--r--games/pacman-arena/pacman-arena.info6
-rw-r--r--games/pacman-arena/pacman-arena.pngbin1898 -> 0 bytes
-rw-r--r--games/pacman-arena/pacman-arena.rst62
12 files changed, 172 insertions, 15 deletions
diff --git a/games/pacman-arena/doinst.sh b/games/pacman-arena/doinst.sh
index 5fb28930db0b9..3e5691a052b5b 100644
--- a/games/pacman-arena/doinst.sh
+++ b/games/pacman-arena/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/pacman-arena/icons/128.png b/games/pacman-arena/icons/128.png
new file mode 100644
index 0000000000000..7e3a7190b33b0
--- /dev/null
+++ b/games/pacman-arena/icons/128.png
Binary files differ
diff --git a/games/pacman-arena/icons/16.png b/games/pacman-arena/icons/16.png
new file mode 100644
index 0000000000000..ae806049d1ef5
--- /dev/null
+++ b/games/pacman-arena/icons/16.png
Binary files differ
diff --git a/games/pacman-arena/icons/32.png b/games/pacman-arena/icons/32.png
new file mode 100644
index 0000000000000..2e016a6cd22cd
--- /dev/null
+++ b/games/pacman-arena/icons/32.png
Binary files differ
diff --git a/games/pacman-arena/icons/48.png b/games/pacman-arena/icons/48.png
new file mode 100644
index 0000000000000..1b93feb5c04c7
--- /dev/null
+++ b/games/pacman-arena/icons/48.png
Binary files differ
diff --git a/games/pacman-arena/icons/64.png b/games/pacman-arena/icons/64.png
new file mode 100644
index 0000000000000..cba660f267a4e
--- /dev/null
+++ b/games/pacman-arena/icons/64.png
Binary files differ
diff --git a/games/pacman-arena/pacman-arena.6 b/games/pacman-arena/pacman-arena.6
new file mode 100644
index 0000000000000..09d84c34f4cc9
--- /dev/null
+++ b/games/pacman-arena/pacman-arena.6
@@ -0,0 +1,76 @@
+.\" Man page generated from reStructuredText.
+.
+.
+.nr rst2man-indent-level 0
+.
+.de1 rstReportMargin
+\\$1 \\n[an-margin]
+level \\n[rst2man-indent-level]
+level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
+-
+\\n[rst2man-indent0]
+\\n[rst2man-indent1]
+\\n[rst2man-indent2]
+..
+.de1 INDENT
+.\" .rstReportMargin pre:
+. RS \\$1
+. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
+. nr rst2man-indent-level +1
+.\" .rstReportMargin post:
+..
+.de UNINDENT
+. RE
+.\" indent \\n[an-margin]
+.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
+.nr rst2man-indent-level -1
+.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
+.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
+..
+.TH "PACMAN-ARENA" 6 "2021-10-20" "0.15" "SlackBuilds.org"
+.SH NAME
+pacman-arena \- 3d Pac-Man clone with explosions
+.\" RST source for pacman-arena(6) man page. Convert with:
+.
+.\" rst2man.py pacman-arena.rst > pacman-arena.6
+.
+.\" rst2man.py comes from the SBo development/docutils package.
+.
+.SH SYNOPSIS
+.sp
+pacman\-arena
+.SH DESCRIPTION
+.sp
+Pacman Arena is a Pacman clone in full 3D with a few surprises. Rockets,
+bombs and explosions abound.
+.sp
+There are no useful command\-line options or arguments.
+.\" yes, there are --server and --client, but they don't result
+.
+.\" in a multiplayer game. looks like the netplay code was never
+.
+.\" finished.
+.
+.SH CONTROLS
+.INDENT 0.0
+.TP
+.B \fIArrow keys\fP
+Move Pac\-man.
+.TP
+.B \fISpace\fP
+Launch a rocket.
+.TP
+.B \fIB\fP
+Drop a bomb.
+.UNINDENT
+.SH COPYRIGHT
+.sp
+See the file /usr/doc/PRGNAM\-0.15/COPYING for license information.
+.SH AUTHORS
+.sp
+pacman\-arena was written by Nuno Subtil.
+.sp
+This man page written for the SlackBuilds.org project
+by B. Watson, and is licensed under the WTFPL.
+.\" Generated by docutils manpage writer.
+.
diff --git a/games/pacman-arena/pacman-arena.SlackBuild b/games/pacman-arena/pacman-arena.SlackBuild
index e2bb0eb133474..ee1e7b0d1a593 100644
--- a/games/pacman-arena/pacman-arena.SlackBuild
+++ b/games/pacman-arena/pacman-arena.SlackBuild
@@ -6,11 +6,16 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20211020 bkw: BUILD=2
+# - fix -current build.
+# - new-style icons.
+# - man page.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pacman-arena
VERSION=${VERSION:-0.15}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +27,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
@@ -63,14 +65,13 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $SRCNAM
unzip $CWD/$DATAFILE
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 {} \+
autoreconf -if
+SLKCFLAGS+=" -fcommon"
+
# I know we're supposed to use LIBS="-lm", but it doesn't work here.
LDFLAGS="-lm" \
CFLAGS="$SLKCFLAGS" \
@@ -102,14 +103,26 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# icon is a 32x32 chunk of gfx/pacman_arena1.tga edited with gimp.
+# icon made from a screenshot of the game. at 16x16, it just looks like noise.
+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
# .desktop written for this build
mkdir -p $PKG/usr/share/applications
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+# man page written for this build
+mkdir -p $PKG/usr/man/man6
+gzip -9c < $CWD/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
diff --git a/games/pacman-arena/pacman-arena.desktop b/games/pacman-arena/pacman-arena.desktop
index 8b87e9b66f0b2..49fefcd533115 100644
--- a/games/pacman-arena/pacman-arena.desktop
+++ b/games/pacman-arena/pacman-arena.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=Pac-Man Arena
Comment=3D Pac-Man with explosions
-Exec=pacman-arena
+Exec=/usr/games/pacman-arena
Icon=pacman-arena
Terminal=false
Type=Application
diff --git a/games/pacman-arena/pacman-arena.info b/games/pacman-arena/pacman-arena.info
index a2cebf47e5243..cc817a99a91ef 100644
--- a/games/pacman-arena/pacman-arena.info
+++ b/games/pacman-arena/pacman-arena.info
@@ -1,8 +1,8 @@
PRGNAM="pacman-arena"
VERSION="0.15"
-HOMEPAGE="http://pacmanarena.sourceforge.net/"
-DOWNLOAD="http://downloads.sourceforge.net/project/pacmanarena/pacmanarena/v0.0/pacman-arena-0.15.tar.bz2 \
- http://downloads.sourceforge.net/project/pacmanarena/pacmanarena/v0.0/pacman-data-0.0.zip"
+HOMEPAGE="https://sourceforge.net/projects/pacmanarena/"
+DOWNLOAD="https://downloads.sourceforge.net/project/pacmanarena/pacmanarena/v0.0/pacman-arena-0.15.tar.bz2 \
+ https://downloads.sourceforge.net/project/pacmanarena/pacmanarena/v0.0/pacman-data-0.0.zip"
MD5SUM="4ff7e55810838fd81f966b76340b0103 \
876b7bf02bbe26aab47c5aeee26b2be6"
DOWNLOAD_x86_64=""
diff --git a/games/pacman-arena/pacman-arena.png b/games/pacman-arena/pacman-arena.png
deleted file mode 100644
index ac20564914746..0000000000000
--- a/games/pacman-arena/pacman-arena.png
+++ /dev/null
Binary files differ
diff --git a/games/pacman-arena/pacman-arena.rst b/games/pacman-arena/pacman-arena.rst
new file mode 100644
index 0000000000000..50c405f094b33
--- /dev/null
+++ b/games/pacman-arena/pacman-arena.rst
@@ -0,0 +1,62 @@
+.. RST source for pacman-arena(6) man page. Convert with:
+.. rst2man.py pacman-arena.rst > pacman-arena.6
+.. rst2man.py comes from the SBo development/docutils package.
+
+.. |version| replace:: 0.15
+.. |date| date::
+
+============
+pacman-arena
+============
+
+--------------------------------
+3d Pac-Man clone with explosions
+--------------------------------
+
+:Manual section: 6
+:Manual group: SlackBuilds.org
+:Date: |date|
+:Version: |version|
+
+SYNOPSIS
+========
+
+pacman-arena
+
+DESCRIPTION
+===========
+
+Pacman Arena is a Pacman clone in full 3D with a few surprises. Rockets,
+bombs and explosions abound.
+
+There are no useful command-line options or arguments.
+
+.. yes, there are --server and --client, but they don't result
+.. in a multiplayer game. looks like the netplay code was never
+.. finished.
+
+CONTROLS
+========
+
+*Arrow keys*
+ Move Pac-man.
+
+*Space*
+ Launch a rocket.
+
+*B*
+ Drop a bomb.
+
+
+COPYRIGHT
+=========
+
+See the file /usr/doc/PRGNAM-|version|/COPYING for license information.
+
+AUTHORS
+=======
+
+pacman-arena was written by Nuno Subtil.
+
+This man page written for the SlackBuilds.org project
+by B. Watson, and is licensed under the WTFPL.