diff options
Diffstat (limited to 'games/doomsday/doomsday.SlackBuild')
-rw-r--r-- | games/doomsday/doomsday.SlackBuild | 55 |
1 files changed, 37 insertions, 18 deletions
diff --git a/games/doomsday/doomsday.SlackBuild b/games/doomsday/doomsday.SlackBuild index 72367234cf5d..b9ecd8e95e2a 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 |