summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/ltris/ltris.SlackBuild23
-rw-r--r--games/ltris/ltris.info10
2 files changed, 20 insertions, 13 deletions
diff --git a/games/ltris/ltris.SlackBuild b/games/ltris/ltris.SlackBuild
index 2dd4b3c7b6..7e501cb7f5 100644
--- a/games/ltris/ltris.SlackBuild
+++ b/games/ltris/ltris.SlackBuild
@@ -3,13 +3,13 @@
# Slackware build script for LTris
# Written by Bill Kirkpatrick <bkirkp@gmail.com>
-# Build 2, 20080515 - Minor version bump, 1.0.12
+# Build 3, 20100120 - Minor version bump, 1.0.14
# Modified by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=ltris
-VERSION=1.0.12
+VERSION=1.0.14
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -19,17 +19,20 @@ 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
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
+cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
@@ -40,17 +43,19 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var/lib/lgames \
- --build=$ARCH-slackware-linux \
- --host=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -61,4 +66,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}
diff --git a/games/ltris/ltris.info b/games/ltris/ltris.info
index 8cd49406f7..8904d039de 100644
--- a/games/ltris/ltris.info
+++ b/games/ltris/ltris.info
@@ -1,8 +1,10 @@
PRGNAM="ltris"
-VERSION="1.0.12"
+VERSION="1.0.14"
HOMEPAGE="http://lgames.sourceforge.net/index.php?project=LTris"
-DOWNLOAD="http://downloads.sourceforge.net/lgames/ltris-1.0.12.tar.gz"
-MD5SUM="53b00c17a05c438602a52009e65ebde2"
+DOWNLOAD="http://downloads.sourceforge.net/lgames/ltris-1.0.14.tar.gz"
+DOWNLOAD_x86_64=""
+MD5SUM="7eff57f492bc880a02a58c64f638959e"
+MD5SUM_x86_64=""
MAINTAINER="Bill Kirkpatrick"
EMAIL="bkirkp@gmail.com"
-APPROVED="rworkman"
+APPROVED="Erik Hanson"