games/doomsday: New-style icons.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2021-11-03 00:13:45 -04:00 committed by Willy Sudiarto Raharjo
parent b581a1a4da
commit a1f5a814ac
No known key found for this signature in database
GPG key ID: 3F617144D7238786
5 changed files with 41 additions and 24 deletions

View file

@ -1,4 +1,6 @@
A portable game engine for classic first person shooters such as
DOOM, Heretic and Hexen. Lets you enjoy the original games using
modern technology, including high-resolution OpenGL graphics, 3D
models, and dynamic lighting effects.
doomsday (portable game engine for Doom and related games)
Doomsday is a portable game engine for classic first person shooters
such as DOOM, Heretic and Hexen. Lets you enjoy the original games
using modern technology, including high-resolution OpenGL graphics,
3D models, and dynamic lighting effects.

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

View file

@ -24,6 +24,11 @@
# Now maintained by B. Watson.
# 20211102 bkw: someone else updated this for v2.3.1 BUILD=1.
# - BUILD=2.
# - new-style icons.
# - binaries in /usr/games.
# 20170207 bkw:
# - Take over maintenance, BUILD=2
# - Remove OpenAL and fmodapi from REQUIRES, since they are not
@ -48,7 +53,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=doomsday
VERSION=${VERSION:-2.3.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -60,9 +65,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
@ -95,11 +97,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 {} \+
# build amethyst
mkdir -p build-amethyst
@ -111,10 +110,9 @@ cd build-amethyst
-DCMAKE_BUILD_TYPE=Release \
../doomsday/tools/amethyst
make
make install DESTDIR=$PKG
make install/strip DESTDIR=$PKG
cd ..
# already provided by the assimp package
mkdir -p build
cd build
cmake \
@ -123,19 +121,30 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
make install/strip DESTDIR=$PKG
cd ..
mv $PKG/usr/bin $PKG/usr/games
DESKDIR=$PKG/usr/share/applications
chmod -x $DESKDIR/*
sed -i -e 's,/bin/,/games/,g' \
-e '/^Encoding/d' \
$DESKDIR/*
mkdir -p $PKG/usr/share/pixmaps
convert -resize 48x48 \
$PKG/usr/share/icons/hicolor/256x256/apps/net.dengine.Doomsday.png \
$PKG/usr/share/pixmaps/$PRGNAM.png
# already provided by the assimp package
rm -fR $PKG/usr/include/assimp
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# manually install man pages
rm -rf $PKG/usr/share/man
mkdir -p $PKG/usr/man/man6
for i in doomsday doomsday-server doomsday-shell-text; do
gzip -c9 doomsday/doc/$i.6 > $PKG/usr/man/man6/$i.6.gz
for i in doomsday/doc/*.6; do
gzip -9c < $i > $PKG/usr/man/man6/$( basename $i ).gz
done
mkdir -p $PKG/usr/doc

View file

@ -1,7 +1,7 @@
PRGNAM="doomsday"
VERSION="2.3.1"
HOMEPAGE="http://dengine.net"
DOWNLOAD="http://downloads.sourceforge.net/deng/doomsday-2.3.1.tar.gz"
HOMEPAGE="https://dengine.net"
DOWNLOAD="https://downloads.sourceforge.net/deng/doomsday-2.3.1.tar.gz"
MD5SUM="9ae2a3e053a6f11f37dfb450bb5e53cb"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""

View file

@ -6,7 +6,7 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
doomsday: doomsday (portable game engine)
doomsday: doomsday (portable game engine for Doom and related games)
doomsday:
doomsday: A portable game engine for classic first person shooters such as
doomsday: DOOM, Heretic and Hexen. Lets you enjoy the original games using