games/doomsday: Updated for version 2.3.1.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2021-07-11 10:51:15 +02:00 committed by Willy Sudiarto Raharjo
parent 1536e98454
commit c398b15262
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 42 additions and 23 deletions

View file

@ -47,9 +47,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=doomsday
SRCNAM=${PRGNAM}-stable
VERSION=${VERSION:-1.15.8}
BUILD=${BUILD:-2}
VERSION=${VERSION:-2.3.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -83,9 +82,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
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 \
@ -93,25 +92,45 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cd $PRGNAM
qmake # create Makefile
make # Build
make INSTALL_ROOT=$PKG install # Install engine
# build amethyst
mkdir -p build-amethyst
cd build-amethyst
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
../doomsday/tools/amethyst
make
make install DESTDIR=$PKG
cd ..
# already provided by the assimp package
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd ..
# 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
# move man pages in right place
mkdir -p $PKG/usr/man
mv $PKG/usr/share/man/man6 $PKG/usr/man
rm -rf $PKG/usr/share/man
# manually install man pages
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
done
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/usr/doc
mv $PKG/usr/share/doc $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,10 +1,10 @@
PRGNAM="doomsday"
VERSION="1.15.8"
VERSION="2.3.1"
HOMEPAGE="http://dengine.net"
DOWNLOAD="http://downloads.sourceforge.net/project/deng/Doomsday%20Engine/1.15.8/doomsday-stable-1.15.8.tar.gz"
MD5SUM="14487b988bd3b46580164cdcfa5989d5"
DOWNLOAD="http://downloads.sourceforge.net/deng/doomsday-2.3.1.tar.gz"
MD5SUM="9ae2a3e053a6f11f37dfb450bb5e53cb"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="wxPython assimp"
REQUIRES="assimp"
MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com"