mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
games/scid: Added to 12.2 repository
This commit is contained in:
parent
fd293657b8
commit
b453f5a8e6
8 changed files with 232 additions and 0 deletions
28
games/scid/README
Normal file
28
games/scid/README
Normal file
|
@ -0,0 +1,28 @@
|
|||
With Scid you can maintain a database of chess games, search games by
|
||||
many criteria, view graphical trends, and produce printable reports
|
||||
on players and openings. There are many more features as well. With
|
||||
Scid you can also play against various engines or on Internet (FICS).
|
||||
|
||||
To enjoy Scid at its full power, you should download these files:
|
||||
The Player Information / spellcheck data:
|
||||
<http://downloads.sourceforge.net/scid/ratings_2008_4.zip>
|
||||
Photo data:
|
||||
<http://downloads.sourceforge.net/scid/photos2007.zip>
|
||||
Scidlet opening books:
|
||||
<http://downloads.sourceforge.net/scid/scidlet40k.zip>
|
||||
Place them in the same directory of the source and the will be included
|
||||
in the package.
|
||||
|
||||
Please see the manpage (man scid) for Slackware-specific information
|
||||
regarding the opening books permissions.
|
||||
|
||||
This SlackBuild does not build the two engines shipped with Scid, togaII
|
||||
and phalanx, because it places them in a non-standard directory and they
|
||||
are full-featured stand-alone programs. You should instead use the build
|
||||
scripts provided for them here at SlackBuilds.org.
|
||||
|
||||
Optional dependencies (for sound, advanced graphics and correspondence
|
||||
chess): tDOM, the Img package (tkimg) and Snack sound package. These
|
||||
packages are *not* required for the build and are searched and loaded
|
||||
when the program starts. If not found, Scid simply disables these
|
||||
features.
|
4
games/scid/doinst.sh
Normal file
4
games/scid/doinst.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database usr/share/applications &> /dev/null
|
||||
fi
|
||||
|
59
games/scid/scid.1
Normal file
59
games/scid/scid.1
Normal file
|
@ -0,0 +1,59 @@
|
|||
.\" Hey, EMACS: -*- nroff -*-
|
||||
.\" First parameter, NAME, should be all caps
|
||||
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||
.\" other parameters are allowed: see man(7), man(1)
|
||||
.TH SCID 1 "January 12, 2009"
|
||||
.SH NAME
|
||||
scid, pgnfix, pgnscid, sc_addmove, sc_eco, sc_epgn, sc_import, sc_remote,
|
||||
sc_spell, sc_tree, scidlet, scidpgn, scmerge, spliteco, tcscid,
|
||||
tkscid, twic2scid - chess database and utility programs
|
||||
.SH SYNOPSIS
|
||||
.B scid
|
||||
.SH DESCRIPTION
|
||||
This manual page documents briefly
|
||||
.B Shane's Chess Information Database.
|
||||
This manual page was originally written for the Debian GNU/Linux
|
||||
distribution because the original program does not have a manual
|
||||
page. It does have documentation in a README file, which is available
|
||||
as /usr/doc/scid-@VERSION@/README. It also has extensive HTML
|
||||
documentation, which is available at
|
||||
/usr/doc/scid-@VERSION@/help/Index.html .
|
||||
.PP
|
||||
Scid is a chess database application. With it you can browse databases
|
||||
of chess games, edit games, and search for games by various criteria.
|
||||
Scid uses its own compact and fast database format, but can convert to and
|
||||
from PGN format.
|
||||
.PP
|
||||
The command 'scid' starts the graphical user interface.
|
||||
.PP
|
||||
The spell-checking file is placed in
|
||||
/usr/share/scid/data/ratings_2008_4.ssp (in case Scid can't find it),
|
||||
while the books for scidlet is in /usr/share/scid/books/scidlet40k.sbk.
|
||||
Scid should show a photo whenever a game by a player with a photograph is
|
||||
loaded. This should happen automatically. If not, copy or link the files in
|
||||
/usr/share/scid/photos to your Scid user options directory (~/.scid)
|
||||
and run Scid. To see the photos you must load the spell-checking file.
|
||||
|
||||
.SH SLACKWARE-SPECIFIC INFORMATION
|
||||
As packaged with the script from SlackBuilds.org, the directories
|
||||
/usr/share/scid/books and /usr/share/scid/bases are owned by root:games
|
||||
and with permissions of 775, which means that they are readable by anyone,
|
||||
but writable by only members of the "games" group. This makes it possible
|
||||
for members of the "games" group to add/change/delete books and bases for
|
||||
scid. However, a much better approach is something along these lines:
|
||||
|
||||
mkdir -p $HOME/.scid
|
||||
cp -r /usr/share/scid/{bases,books} $HOME/.scid
|
||||
|
||||
Then, in the Options menu of the scid interface, set the bases directory
|
||||
to $HOME/.scid/bases and the books directory to $HOME/.scid/books, and
|
||||
restart scid. Try with F11 to see if the book works. If not, then you may
|
||||
have to set the permissions of $HOME/.scid/bases/* and $HOME/.scid/books/*
|
||||
to 0666.
|
||||
|
||||
.SH AUTHOR
|
||||
Scid was written by Shane Hudson <sgh@users.sourceforge.net>. This
|
||||
manual page was written by Peter van Rossum <petervr@debian.org>, for
|
||||
the Debian GNU/Linux system, and subsequently modified by Marco Pessotto
|
||||
<melmothx@gmail.com> and Robby Workman <rworkman@slackware.com> with
|
||||
Slackware-specific information and other minor tweaks.
|
106
games/scid/scid.SlackBuild
Normal file
106
games/scid/scid.SlackBuild
Normal file
|
@ -0,0 +1,106 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for scid
|
||||
|
||||
# written by Marco Pessotto <melmothx@gmail.com>
|
||||
# public domain
|
||||
|
||||
# Modified by Robby Workman <rworkman@slackbuilds.org>
|
||||
|
||||
PRGNAM=scid
|
||||
VERSION=${VERSION:-3.6.26}
|
||||
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"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||
cd $PRGNAM
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
chown -R root:root .
|
||||
|
||||
./configure \
|
||||
BINDIR="/usr/bin" \
|
||||
SHAREDIR="/usr/share/scid" \
|
||||
OPTIMIZE="$SLKCFLAGS -fno-rtti -fno-exceptions"
|
||||
|
||||
make all_scid
|
||||
make strip
|
||||
make install_scid DESTDIR=$PKG
|
||||
|
||||
## Add some stuff if it's present
|
||||
if [ -f $CWD/scidlet40k.zip ] ; then
|
||||
mkdir -p $PKG/usr/share/scid/books
|
||||
unzip $CWD/scidlet40k.zip -d $PKG/usr/share/scid/books
|
||||
fi
|
||||
if [ -f $CWD/ratings_2008_4.zip ] ; then
|
||||
mkdir -p $PKG/usr/share/scid/data
|
||||
unzip $CWD/ratings_2008_4.zip -d $PKG/usr/share/scid/data
|
||||
fi
|
||||
if [ -f $CWD/photos2007.zip ] ; then
|
||||
mkdir -p $PKG/usr/share/scid/photos
|
||||
unzip $CWD/photos2007.zip -d $PKG/usr/share/scid/photos
|
||||
fi
|
||||
|
||||
# Fix some permissions
|
||||
find $PKG/usr/share/scid -type d -exec chmod 0755 {} \;
|
||||
find $PKG/usr/share/scid -type f -exec chmod 0644 {} \;
|
||||
|
||||
# We're going to diverge from upstream a bit in location but not functionality
|
||||
# This will require users to be in the 'games' group for write permissions
|
||||
mkdir -p $PKG/var/games/scid
|
||||
mv $PKG/usr/share/scid/{bases,books} $PKG/var/games/scid
|
||||
chown -R root:games $PKG/var/games/scid
|
||||
find $PKG/var/games/scid -type d -exec chmod 2775 {} \;
|
||||
find $PKG/var/games/scid -type f -exec chmod 0664 {} \;
|
||||
( cd $PKG/usr/share/scid
|
||||
ln -s ../../../var/games/scid/bases .
|
||||
ln -s ../../../var/games/scid/books .
|
||||
)
|
||||
|
||||
# Add a desktop menu entry
|
||||
mkdir -p $PKG/usr/share/{applications,pixmaps}
|
||||
cat $CWD/scid.desktop > $PKG/usr/share/applications/scid.desktop
|
||||
cat $CWD/scid.png > $PKG/usr/share/pixmaps/scid.png
|
||||
|
||||
## Add the manpage (Thanks to debian)
|
||||
mkdir -p $PKG/usr/man/man1
|
||||
( cd $PKG/usr/man/man1
|
||||
sed "s%@VERSION@%$VERSION%g" $CWD/scid.1 | gzip -9c > scid.1.gz
|
||||
for i in \
|
||||
sc_remote scmerge pgnscid sc_spell spliteco sc_eco sc_tree scidpgn pgnfix \
|
||||
tkscid sc_epgn sc_addmove tcscid sc_import scidlet scidt ;
|
||||
do ln -s scid.1.gz $i.1.gz
|
||||
done
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
ChangeLog CHANGES COPYING help README THANKS TODO \
|
||||
$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/scid/scid.desktop
Normal file
8
games/scid/scid.desktop
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Scid
|
||||
GenericName=A Free Chess Database App
|
||||
Exec=scid
|
||||
Icon=scid
|
||||
Type=Application
|
||||
Categories=Application;Game;BoardGame;
|
8
games/scid/scid.info
Normal file
8
games/scid/scid.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="scid"
|
||||
VERSION="3.6.26"
|
||||
HOMEPAGE="http://scid.sourceforge.net"
|
||||
DOWNLOAD="http://prdownloads.sourceforge.net/scid/scid-3.6.26.tar.bz2"
|
||||
MD5SUM="fdf70539bca21513c33ca6d3d031ec9d"
|
||||
MAINTAINER="Marco Pessotto"
|
||||
EMAIL="melmothx@gmail.com"
|
||||
APPROVED="rworkman"
|
BIN
games/scid/scid.png
Normal file
BIN
games/scid/scid.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 529 B |
19
games/scid/slack-desc
Normal file
19
games/scid/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 ':'.
|
||||
|
||||
|----hardy-ruler----------------------------------------------------------|
|
||||
scid: scid (A free chess database app)
|
||||
scid:
|
||||
scid: With Scid you can maintain a database of chess games, search games by
|
||||
scid: many criteria, view graphical trends, and produce printable reports
|
||||
scid: on players and openings. There are many more features as well. With
|
||||
scid: Scid you can also play against various engines, or on Internet (FICS).
|
||||
scid:
|
||||
scid: (http://scid.sourceforge.net/)
|
||||
scid:
|
||||
scid: Please see the manpage (man scid) for Slackware-specific information.
|
||||
scid:
|
Loading…
Reference in a new issue