diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-07-11 10:51:15 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-07-12 18:53:15 +0700 |
commit | c398b15262cbe1755eb6143fa0f21421dbab4287 (patch) | |
tree | d8f90276ad8a59d9b19c43d79ba694977f52a193 /games | |
parent | 1536e9845476e15db1c80ac344fdbe2e5a47c20b (diff) |
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>
Diffstat (limited to 'games')
-rw-r--r-- | games/doomsday/doomsday.SlackBuild | 55 | ||||
-rw-r--r-- | games/doomsday/doomsday.info | 8 |
2 files changed, 41 insertions, 22 deletions
diff --git a/games/doomsday/doomsday.SlackBuild b/games/doomsday/doomsday.SlackBuild index 72367234cf5da..b9ecd8e95e2a9 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 ed0cf84d9db63..033f20f5a4c70 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" |