diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 22:23:03 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 22:23:03 +0200 |
commit | 1f5ad16c496d9f8d726a0d63881aeacd99ab590e (patch) | |
tree | 263f5e2d363f7d6f67117bcc670eeaab3afc051a /games/gnubg/gnubg.SlackBuild | |
parent | 9c0615f17547261770bf5bf27bd73c1daceed2be (diff) |
games/gnubg: Updated for version 0.16_20081013
Diffstat (limited to 'games/gnubg/gnubg.SlackBuild')
-rw-r--r-- | games/gnubg/gnubg.SlackBuild | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/games/gnubg/gnubg.SlackBuild b/games/gnubg/gnubg.SlackBuild index 8a69a8879b4a..dd35d96bf803 100644 --- a/games/gnubg/gnubg.SlackBuild +++ b/games/gnubg/gnubg.SlackBuild @@ -5,7 +5,7 @@ PRGNAM=gnubg VERSION=0.16 -SRCVER=20080325 +SRCVER=20081013 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -19,10 +19,12 @@ 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 rm -rf $PKG -mkdir -p $TMP $PKG +mkdir -p $TMP $PKG $OUTPUT cd $TMP || exit 1 rm -rf $PRGNAM tar xvf $CWD/$PRGNAM-source-SNAPSHOT-$SRCVER.tar.gz || exit 1 @@ -30,12 +32,16 @@ cd $PRGNAM || exit 1 chown -R root:root . chmod -R u+w,go+r-w,a-s . +./autogen.sh || exit 1 + CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux \ || exit 1 make || exit 1 @@ -47,13 +53,11 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a ABOUT-NLS AUTHORS CODING COPYING ChangeLog INSTALL NEWS README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -mv $PKG/usr/share/$PRGNAM/doc $PKG/usr/doc/$PRGNAM-$VERSION/html -( cd $PKG/usr/share/$PRGNAM ; ln -s /usr/doc/$PRGNAM-$VERSION/html doc ) mkdir -p $PKG/usr/share/applications cat $CWD/gnubg.desktop > $PKG/usr/share/applications/gnubg.desktop -mkdir -p $PKG/install +mkdir -p $PKG/install cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc |