aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorGuillermo Bonvehi <gbonvehi@gmail.com>2013-03-16 15:37:53 -0400
committerdsomero <xgizzmo@slackbuilds.org>2013-03-22 07:16:49 -0400
commit062d08967109e0a71c375083878b5f73e7b2ba28 (patch)
treeaa250448e1528e12a950aa26f1ca770c48a63469 /games
parentc2a57f882ce5d2e4060356e2f272c710dfed96fe (diff)
games/gnugo: Added (free version of the game of Go)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/gnugo/README7
-rw-r--r--games/gnugo/gnugo.SlackBuild94
-rw-r--r--games/gnugo/gnugo.info10
-rw-r--r--games/gnugo/slack-desc19
4 files changed, 130 insertions, 0 deletions
diff --git a/games/gnugo/README b/games/gnugo/README
new file mode 100644
index 000000000000..ea21969705ae
--- /dev/null
+++ b/games/gnugo/README
@@ -0,0 +1,7 @@
+GNU Go is a free program that plays the game of Go.
+GNU Go has played thousands of games on the NNGS Go server. GNU Go is
+now also playing regularly on the Legend Go Server in Taiwan, on the
+WING server in Japan, and many volunteers run GNU Go clients on KGS.
+GNU Go has established itself as the leading non-commercial go program
+in the recent tournaments that it has taken part in.
+
diff --git a/games/gnugo/gnugo.SlackBuild b/games/gnugo/gnugo.SlackBuild
new file mode 100644
index 000000000000..ffb41ec5feaf
--- /dev/null
+++ b/games/gnugo/gnugo.SlackBuild
@@ -0,0 +1,94 @@
+#!/bin/sh
+
+# Slackware build script for gnugo
+
+# Copyright 2013 by Guillermo Bonvehi (gbonvehi@gmail.com)
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=gnugo
+VERSION=3.8
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+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"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --bindir=/usr/games \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ --docdir=/usr/doc/$PRGNAM-$VERSION
+
+make
+make install-strip DESTDIR=$PKG
+
+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
+
+rm -f $PKG/usr/info/dir
+gzip -9 $PKG/usr/info/*.info*
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING INSTALL NEWS 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
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/games/gnugo/gnugo.info b/games/gnugo/gnugo.info
new file mode 100644
index 000000000000..6c9c99f41c91
--- /dev/null
+++ b/games/gnugo/gnugo.info
@@ -0,0 +1,10 @@
+PRGNAM="gnugo"
+VERSION="3.8"
+HOMEPAGE="http://www.gnu.org/software/gnugo/gnugo.html"
+DOWNLOAD="http://ftp.gnu.org/gnu/gnugo/gnugo-3.8.tar.gz"
+MD5SUM="6db0a528df58876d2b0ef1659c374a9a"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Guillermo Bonvehi"
+EMAIL="gbonvehi@gmail.com"
diff --git a/games/gnugo/slack-desc b/games/gnugo/slack-desc
new file mode 100644
index 000000000000..d7f5c04d4abc
--- /dev/null
+++ b/games/gnugo/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 ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+gnugo: GNU Go (free version of the game of Go)
+gnugo:
+gnugo: GNU Go has played thousands of games on the NNGS Go server. GNU Go is
+gnugo: now also playing regularly on the Legend Go Server in Taiwan, on the
+gnugo: WING server in Japan, and many volunteers run GNU Go clients on KGS.
+gnugo: GNU Go has established itself as the leading non-commercial go program
+gnugo: in the recent tournaments that it has taken part in.
+gnugo:
+gnugo:
+gnugo: http://www.gnu.org/software/gnugo/gnugo.html
+gnugo: