diff options
Diffstat (limited to 'games/uligo')
-rw-r--r-- | games/uligo/README | 7 | ||||
-rw-r--r-- | games/uligo/uligo.SlackBuild | 16 |
2 files changed, 17 insertions, 6 deletions
diff --git a/games/uligo/README b/games/uligo/README index fe6fd46fd7..7210395f01 100644 --- a/games/uligo/README +++ b/games/uligo/README @@ -2,6 +2,7 @@ uliGo is a program to practice solving go problems. It comes with a few problems, and you can use it with classical go problems, or with problems of your own. -In order to help you to learn to handle shapes instead of certain problems -uliGo randomly rotates and mirrors the board, and switches black and white. -You can also use uliGo to replay (pro) games, and guess the next move. +In order to help you to learn to handle shapes instead of certain +problems uliGo randomly rotates and mirrors the board, and switches +black and white. You can also use uliGo to replay (pro) games, and +guess the next move. diff --git a/games/uligo/uligo.SlackBuild b/games/uligo/uligo.SlackBuild index 48c693a112..a295fa9687 100644 --- a/games/uligo/uligo.SlackBuild +++ b/games/uligo/uligo.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware "build" script for uliGo @@ -22,15 +22,25 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=uligo VERSION=${VERSION:-0.3} _VERSION=$(echo "$VERSION" | sed 's/\.//g') # because they use weird tarball names BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH="noarch" -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -71,4 +81,4 @@ 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} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |