games/chocolate-doom: Updated for version 3.1.0.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2024-08-06 01:30:11 -04:00 committed by Willy Sudiarto Raharjo
parent 7312df136e
commit 1214c2d3e0
No known key found for this signature in database
GPG key ID: 3F617144D7238786
4 changed files with 68 additions and 18 deletions

View file

@ -6,6 +6,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20240805 bkw: update for v3.1.0.
# 20210727 bkw: fix build on -current (does no harm on 14.2), BUILD=2.
# 20201019 bkw: update for v3.0.1.
# 20180101 bkw:
@ -27,8 +28,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=chocolate-doom
VERSION=${VERSION:-3.0.1}
BUILD=${BUILD:-2}
VERSION=${VERSION:-3.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -85,6 +86,8 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# upstream fix from git, easier to use sed than make a diff.
# as of 3.1.0, this line doesn't do anything, leaving it in case someone
# wants to build an older version.
sed -i '/^boolean demoextend/d' src/hexen/mn_menu.c
[ -x configure ] || sh autogen.sh
@ -104,17 +107,11 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
make install-strip DESTDIR=$PKG
# install-strip fails to strip the *-setup binaries.
strip $PKG/usr/games/*
# No symlinks in /usr/man (we'll create some later though)
# No symlinks in /usr/man.
gzip -9 $PKG/usr/man/man?/*
# Move icons to standard Slackware pixmap icon dir:
mv $PKG/usr/share/icons $PKG/usr/share/pixmaps
# 2.3.0 has a single chocolate-setup binary, which it installs 4 copies
# of with different names, and it uses the names to decide which game
# to configure. Better done with symlinks. Plus make links for the man
@ -122,18 +119,23 @@ mv $PKG/usr/share/icons $PKG/usr/share/pixmaps
# you want to configure, so strictly speaking these extra symlinks are
# unneeded. Also, upstream only ships one .desktop file for the setup,
# I'm leaving that as-is.
cp $PKG/usr/games/$PRGNAM-setup $PKG/usr/games/chocolate-setup
# 20240806 bkw: 3.1.0 got rid of the chocolate-setup man page, but
# kept the binary, so no more man page symlinks.
install -s $PKG/usr/games/$PRGNAM-setup $PKG/usr/games/chocolate-setup
for exe in $PKG/usr/games/chocolate-*-setup; do
man=$PKG/usr/man/man6/$( basename $exe ).6.gz
rm -f $exe $man
rm -f $exe
ln -s chocolate-setup $exe
ln -s chocolate-setup.6.gz $man
done
# 20240806 bkw: chocolate-setup man page taken from previous release (3.0.1).
gzip -9c < $CWD/chocolate-setup.6 > $PKG/usr/man/man6/chocolate-setup.6.gz
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cp -a HACKING.md TODO.md AUTHORS COPYING $PKG/usr/doc/$PRGNAM-$VERSION
cp -a HACKING.md TODO.md AUTHORS* COPYING* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

View file

@ -1,8 +1,8 @@
PRGNAM="chocolate-doom"
VERSION="3.0.1"
VERSION="3.1.0"
HOMEPAGE="https://www.chocolate-doom.org/"
DOWNLOAD="https://www.chocolate-doom.org/downloads/3.0.1/chocolate-doom-3.0.1.tar.gz"
MD5SUM="9080b4c0a4e6383d841c51d4d245cad8"
DOWNLOAD="https://github.com/chocolate-doom/chocolate-doom/archive/chocolate-doom-3.1.0/chocolate-doom-chocolate-doom-3.1.0.tar.gz"
MD5SUM="1c9840eb0085a5f4af5e5e0074e35616"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

View file

@ -0,0 +1,42 @@
.TH chocolate\-setup 6
.SH NAME
chocolate\-setup \- configuration tool for chocolate\-doom
.SH SYNOPSIS
.B chocolate\-setup
[OPTIONS]
.SH DESCRIPTION
.PP
Chocolate Doom is a modern Doom engine designed to behave
as similar to the original Doom game as is possible.
.PP
.B chocolate\-setup
is a tool for configuring Chocolate Doom. It provides a menu\-based
interface for the display, joystick, keyboard, mouse, sound and
compatibility settings.
.PP
.B chocolate\-setup
can also be used to start and join network games.
.PP
.SH OPTIONS
.TP
\fB-config <file>\fR
Load configuration from the specified file, instead of default.cfg.
.TP
\fB-extraconfig <file>\fR
Load extra configuration from the specified file, instead of chocolate-doom.cfg.
.SH SEE ALSO
\fBchocolate-doom\fR(6),
\fBdefault.cfg\fR(5),
\fBchocolate-doom.cfg\fR(5)
.SH AUTHOR
Chocolate Doom is written and maintained by Simon Howard.
.PP
This manual was written by Jon Dowland.
.SH COPYRIGHT
Copyright \(co id Software Inc.
Copyright \(co 2005-8 Simon Howard.
.br
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

View file

@ -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 -f usr/share/icons/hicolor >/dev/null 2>&1
fi
fi