summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/scid/README28
-rw-r--r--games/scid/doinst.sh4
-rw-r--r--games/scid/scid.159
-rw-r--r--games/scid/scid.SlackBuild106
-rw-r--r--games/scid/scid.desktop8
-rw-r--r--games/scid/scid.info8
-rw-r--r--games/scid/scid.pngbin0 -> 529 bytes
-rw-r--r--games/scid/slack-desc19
8 files changed, 232 insertions, 0 deletions
diff --git a/games/scid/README b/games/scid/README
new file mode 100644
index 0000000000..3ec4cea2af
--- /dev/null
+++ b/games/scid/README
@@ -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.
diff --git a/games/scid/doinst.sh b/games/scid/doinst.sh
new file mode 100644
index 0000000000..e3f9a2c71e
--- /dev/null
+++ b/games/scid/doinst.sh
@@ -0,0 +1,4 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database usr/share/applications &> /dev/null
+fi
+
diff --git a/games/scid/scid.1 b/games/scid/scid.1
new file mode 100644
index 0000000000..9589447c58
--- /dev/null
+++ b/games/scid/scid.1
@@ -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.
diff --git a/games/scid/scid.SlackBuild b/games/scid/scid.SlackBuild
new file mode 100644
index 0000000000..646e57d545
--- /dev/null
+++ b/games/scid/scid.SlackBuild
@@ -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
diff --git a/games/scid/scid.desktop b/games/scid/scid.desktop
new file mode 100644
index 0000000000..4278cc9a04
--- /dev/null
+++ b/games/scid/scid.desktop
@@ -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;
diff --git a/games/scid/scid.info b/games/scid/scid.info
new file mode 100644
index 0000000000..baaaf02809
--- /dev/null
+++ b/games/scid/scid.info
@@ -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"
diff --git a/games/scid/scid.png b/games/scid/scid.png
new file mode 100644
index 0000000000..0ca76f7e32
--- /dev/null
+++ b/games/scid/scid.png
Binary files differ
diff --git a/games/scid/slack-desc b/games/scid/slack-desc
new file mode 100644
index 0000000000..194accb7cd
--- /dev/null
+++ b/games/scid/slack-desc
@@ -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: