games/ltris: Updated for version 1.0.12

This commit is contained in:
Bill Kirkpatrick 2010-05-11 22:23:03 +02:00 committed by Robby Workman
parent 1f5ad16c49
commit 1468add846
3 changed files with 26 additions and 16 deletions

View file

@ -3,12 +3,15 @@
# Slackware build script for LTris
# Written by Bill Kirkpatrick <bkirkp@gmail.com>
# Build 2, 20080515 - Minor version bump, 1.0.12
# Modified by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=ltris
VERSION=1.0.11
VERSION=1.0.12
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@ -18,14 +21,18 @@ 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
set -e
rm -rf $PKG
mkdir -p $TMP $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
cd $PRGNAM-$VERSION || exit 1
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@ -35,13 +42,16 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var/lib/lgames \
|| exit 1
--build=$ARCH-slackware-linux \
--host=$ARCH-slackware-linux
make || exit 1
make install DESTDIR=$PKG || exit 1
make
make install DESTDIR=$PKG
find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
( 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
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -1,8 +1,8 @@
PRGNAM="ltris"
VERSION="1.0.11"
VERSION="1.0.12"
HOMEPAGE="http://lgames.sourceforge.net/index.php?project=LTris"
DOWNLOAD="http://dl.sourceforge.net/lgames/ltris-1.0.11.tar.gz"
MD5SUM="412ecd9b7577a5bbcb76e19b5397391c"
DOWNLOAD="http://downloads.sourceforge.net/lgames/ltris-1.0.12.tar.gz"
MD5SUM="53b00c17a05c438602a52009e65ebde2"
MAINTAINER="Bill Kirkpatrick"
EMAIL="bkirkp@gmail.com"
APPROVED="BP{k}"
APPROVED="rworkman"

View file

@ -6,14 +6,14 @@
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
ltris:
ltris: LTris (tetris clone)
ltris:
ltris: LTris as a tetris clone which means you have a bowl with blocks
ltris: falling down. By rotating and moving the blocks you try to
ltris: to assemble whole lines which then disappear.
ltris:
ltris:
ltris: Homepage: http://lgames.sourceforge.net/
ltris:
ltris:
ltris:
ltris: