From c398b15262cbe1755eb6143fa0f21421dbab4287 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sun, 11 Jul 2021 10:51:15 +0200 Subject: games/doomsday: Updated for version 2.3.1. Signed-off-by: Matteo Bernardini Signed-off-by: Willy Sudiarto Raharjo --- games/doomsday/doomsday.SlackBuild | 55 +++++++++++++++++++++++++------------- games/doomsday/doomsday.info | 8 +++--- 2 files changed, 41 insertions(+), 22 deletions(-) (limited to 'games/doomsday') diff --git a/games/doomsday/doomsday.SlackBuild b/games/doomsday/doomsday.SlackBuild index 72367234cf..b9ecd8e95e 100644 --- a/games/doomsday/doomsday.SlackBuild +++ b/games/doomsday/doomsday.SlackBuild @@ -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 +# 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 .. -qmake # create Makefile -make # Build -make INSTALL_ROOT=$PKG install # Install engine +# 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 - -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 +# 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 -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 diff --git a/games/doomsday/doomsday.info b/games/doomsday/doomsday.info index ed0cf84d9d..033f20f5a4 100644 --- a/games/doomsday/doomsday.info +++ b/games/doomsday/doomsday.info @@ -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" -- cgit v1.2.3