summaryrefslogtreecommitdiff
path: root/games/gnubg/gnubg.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/gnubg/gnubg.SlackBuild')
-rw-r--r--games/gnubg/gnubg.SlackBuild21
1 files changed, 10 insertions, 11 deletions
diff --git a/games/gnubg/gnubg.SlackBuild b/games/gnubg/gnubg.SlackBuild
index dd35d96bf8..9dfe82b285 100644
--- a/games/gnubg/gnubg.SlackBuild
+++ b/games/gnubg/gnubg.SlackBuild
@@ -1,11 +1,11 @@
-#!/bin/sh
+#!/bin/sh -eu
# Slackware build script for GNU Backgammon
# Written by Erik Hanson erik@slackbuilds.org
PRGNAM=gnubg
-VERSION=0.16
-SRCVER=20081013
+VERSION=0.90.0
+SRCVER=20090501
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -25,14 +25,14 @@ fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM
-tar xvf $CWD/$PRGNAM-source-SNAPSHOT-$SRCVER.tar.gz || exit 1
-cd $PRGNAM || exit 1
+tar xvf $CWD/$PRGNAM-source-SNAPSHOT-$SRCVER.tar.gz
+cd $PRGNAM
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-./autogen.sh || exit 1
+./autogen.sh
CFLAGS="$SLKCFLAGS" \
./configure \
@@ -41,11 +41,10 @@ CFLAGS="$SLKCFLAGS" \
--localstatedir=/var/lib \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux \
- || exit 1
+ --build=$ARCH-slackware-linux
-make || exit 1
-make install-strip DESTDIR=$PKG || exit 1
+make
+make install-strip DESTDIR=$PKG
gzip -9 $PKG/usr/man/man?/*.?