mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
games/dreamchess: Added to 12.2 repository
This commit is contained in:
parent
9dcbdaeac6
commit
f790816ee1
5 changed files with 115 additions and 0 deletions
8
games/dreamchess/README
Normal file
8
games/dreamchess/README
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
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.
|
||||||
|
|
||||||
|
This requires mxml.
|
4
games/dreamchess/doinst.sh
Normal file
4
games/dreamchess/doinst.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
if [ -x /usr/bin/update-desktop-database ]; then
|
||||||
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
76
games/dreamchess/dreamchess.SlackBuild
Normal file
76
games/dreamchess/dreamchess.SlackBuild
Normal file
|
@ -0,0 +1,76 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for dreamchess
|
||||||
|
|
||||||
|
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
|
||||||
|
|
||||||
|
PRGNAM=dreamchess
|
||||||
|
VERSION=${VERSION:-0.2.0}
|
||||||
|
ARCH=${ARCH:-i486}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
CWD=$(pwd)
|
||||||
|
TMP=${TMP:-/tmp/SBo}
|
||||||
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
if [ "$ARCH" = "i486" ]; then
|
||||||
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
cd $TMP
|
||||||
|
rm -rf $PRGNAM-$VERSION
|
||||||
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
|
cd $PRGNAM-$VERSION
|
||||||
|
chown -R root:root .
|
||||||
|
find . \
|
||||||
|
\( -perm 777 -o -perm 775 -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 {} \;
|
||||||
|
|
||||||
|
CFLAGS="$SLKCFLAGS" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--disable-dependency-tracking \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
|
make
|
||||||
|
make install-strip DESTDIR=$PKG
|
||||||
|
|
||||||
|
( cd $PKG/usr/man
|
||||||
|
find . -type f -exec gzip -9 {} \;
|
||||||
|
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||||
|
)
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/share/{applications,pixmaps}
|
||||||
|
install -m 0644 desktop/$PRGNAM.desktop $PKG/usr/share/applications/
|
||||||
|
install -m 0644 desktop/$PRGNAM.png $PKG/usr/share/pixmaps/
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a \
|
||||||
|
AUTHORS ChangeLog COPY* INSTALL NEWS README \
|
||||||
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
|
mkdir -p $PKG/install
|
||||||
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
|
cd $PKG
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
8
games/dreamchess/dreamchess.info
Normal file
8
games/dreamchess/dreamchess.info
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
PRGNAM="dreamchess"
|
||||||
|
VERSION="0.2.0"
|
||||||
|
HOMEPAGE="http://www.dreamchess.org/"
|
||||||
|
DOWNLOAD="http://download.berlios.de/dreamchess/dreamchess-0.2.0.tar.gz"
|
||||||
|
MD5SUM="0e837e14819c1e7d0232c6beb4d5c185"
|
||||||
|
MAINTAINER="Larry Hajali"
|
||||||
|
EMAIL="larryhaja[at]gmail[dot]com"
|
||||||
|
APPROVED="rworkman"
|
19
games/dreamchess/slack-desc
Normal file
19
games/dreamchess/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# HOW TO EDIT THIS FILE:
|
||||||
|
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||||
|
# up the first '|' above the ':' following the base package name, and the '|' on
|
||||||
|
# the right side marks the last column you can put a character in. You must make
|
||||||
|
# exactly 11 lines for the formatting to be correct. It's also customary to
|
||||||
|
# leave one space after the ':'.
|
||||||
|
|
||||||
|
|-----handy-ruler------------------------------------------------------|
|
||||||
|
dreamchess: dreamchess (chess game)
|
||||||
|
dreamchess:
|
||||||
|
dreamchess: DreamChess features 3D OpenGL graphics and provides various chess
|
||||||
|
dreamchess: board sets, ranging from classic wooden to flat. A moderately strong
|
||||||
|
dreamchess: chess engine is included: Dreamer.
|
||||||
|
dreamchess:
|
||||||
|
dreamchess: Homepage: http://www.dreamchess.org/
|
||||||
|
dreamchess:
|
||||||
|
dreamchess:
|
||||||
|
dreamchess:
|
||||||
|
dreamchess:
|
Loading…
Reference in a new issue