aboutsummaryrefslogtreecommitdiff
path: root/games/gtklife/gtklife.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2010-05-13 00:26:27 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:26:27 +0200
commit570060f4b594602f512393f7880d42a491c98184 (patch)
tree4f700a9a3c4a8f23431ad56a5909fc335db80321 /games/gtklife/gtklife.SlackBuild
parent11f6bafbcd2a71ed48d596ebc0c5d9e5841fb6b5 (diff)
games/gtklife: Updated for version 5.1
Diffstat (limited to 'games/gtklife/gtklife.SlackBuild')
-rw-r--r--games/gtklife/gtklife.SlackBuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/games/gtklife/gtklife.SlackBuild b/games/gtklife/gtklife.SlackBuild
index f0473e7afa80e..50c947848b84e 100644
--- a/games/gtklife/gtklife.SlackBuild
+++ b/games/gtklife/gtklife.SlackBuild
@@ -17,10 +17,13 @@ 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"
fi
set -e
@@ -38,7 +41,9 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --with-docdir=/usr/doc/$PRGNAM-$VERSION/html
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --with-docdir=/usr/doc/$PRGNAM-$VERSION/html \
+ --build=$ARCH-slackware-linux
make
make install-strip prefix=$PKG/usr docdir=$PKG/usr/doc/$PRGNAM-$VERSION/html
@@ -57,4 +62,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.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}