diff --git a/games/dreamchess/README b/games/dreamchess/README index cfb7bcbf77..e8c98072e1 100644 --- a/games/dreamchess/README +++ b/games/dreamchess/README @@ -1,6 +1,7 @@ -DreamChess features 3D OpenGL graphics and provides various chess board sets, -ranging from classic wooden to flat. A moderately strong chess engine is -included: Dreamer. However, should this engine be too weak for you, then -you can use any other XBoard-compatible chess engine, including the popular -Crafty and GNU Chess. Other features include on-screen move lists using SAN -notation, undo functionality, and savegames in PGN format. +DreamChess features 3D OpenGL graphics and provides various chess board +sets, ranging from classic wooden to flat. A moderately strong chess +engine is included: Dreamer. However, should this engine be too weak +for you, then you can use any other XBoard-compatible chess engine, +including the popular Crafty and GNU Chess. Other features include +on-screen move lists using SAN notation, undo functionality, and +savegames in PGN format. diff --git a/games/dreamchess/dreamchess.SlackBuild b/games/dreamchess/dreamchess.SlackBuild index b49420ffa3..e13792b066 100644 --- a/games/dreamchess/dreamchess.SlackBuild +++ b/games/dreamchess/dreamchess.SlackBuild @@ -3,17 +3,16 @@ # Slackware build script for dreamchess # Written by Larry Hajali -# Maintained by Erik Hanson +# Maintained by Kent Fritz PRGNAM=dreamchess -VERSION=${VERSION:-0.2.1_RC2} -SRCVER=${SRCVER:-0.2.1-RC2} +VERSION=${VERSION:-0.3.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -24,8 +23,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -43,35 +42,36 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$SRCVER -tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz -cd $PRGNAM-$SRCVER +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -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 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -LDFLAGS="-lm" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --mandir=/usr/man \ - --disable-dependency-tracking \ - --build=$ARCH-slackware-linux - -make -make install-strip DESTDIR=$PKG +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_MANDIR=/usr/man \ + -DCMAKE_INSTALL_DOCDIR=/usr/doc/$PRGNAM-$VERSION \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install/strip DESTDIR=$PKG +cd .. 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 cp -a \ - AUTHORS ChangeLog COPY* INSTALL NEWS README \ + NEWS.md README.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/games/dreamchess/dreamchess.info b/games/dreamchess/dreamchess.info index 2d7adabac1..ebfd935a86 100644 --- a/games/dreamchess/dreamchess.info +++ b/games/dreamchess/dreamchess.info @@ -1,10 +1,10 @@ PRGNAM="dreamchess" -VERSION="0.2.1_RC2" +VERSION="0.3.0" HOMEPAGE="https://www.dreamchess.org/" -DOWNLOAD="https://github.com/dreamchess/dreamchess/releases/download/0.2.1-RC2/dreamchess-0.2.1-RC2.tar.gz" -MD5SUM="afb6d1b81d324dc76238f3607d84af30" +DOWNLOAD="https://github.com/dreamchess/dreamchess/archive/0.3.0/dreamchess-0.3.0.tar.gz" +MD5SUM="b7182cb12db05f28380bbfb29c8bca56" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="mxml" -MAINTAINER="Erik Hanson" -EMAIL="erik@slackbuilds.org" +REQUIRES="SDL2_mixer SDL2_image" +MAINTAINER="Kent Fritz" +EMAIL="fritz.kent@gmail.com"