summaryrefslogtreecommitdiff
path: root/games/angband/angband.SlackBuild
diff options
context:
space:
mode:
authorMarshall Scott <bacchist@gmail.com>2010-05-13 00:25:58 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:25:58 +0200
commitbfed8ab79f395161f76df69c6125f9754e96af27 (patch)
treed5652a70a05f1ed545b6b27d7e19fc66518fc3d2 /games/angband/angband.SlackBuild
parent7cd8f3e6d9a81f88bf637832bc26806ca0e9a678 (diff)
downloadslackbuilds-bfed8ab79f395161f76df69c6125f9754e96af27.tar.gz
games/angband: Updated for version 3.1.0beta
Diffstat (limited to 'games/angband/angband.SlackBuild')
-rw-r--r--games/angband/angband.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/games/angband/angband.SlackBuild b/games/angband/angband.SlackBuild
index 57ffd240d7..f318db339e 100644
--- a/games/angband/angband.SlackBuild
+++ b/games/angband/angband.SlackBuild
@@ -16,11 +16,14 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
rm -rf $PKG
@@ -39,6 +42,7 @@ patch -p1 < $CWD/Fix_DESTDIR_support.patch || exit 1
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--with-libpath=/usr/share/games/angband \
@@ -87,5 +91,5 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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}