diff options
-rw-r--r-- | games/ltris/ltris.SlackBuild | 30 | ||||
-rw-r--r-- | games/ltris/ltris.info | 8 | ||||
-rw-r--r-- | games/ltris/slack-desc | 4 |
3 files changed, 26 insertions, 16 deletions
diff --git a/games/ltris/ltris.SlackBuild b/games/ltris/ltris.SlackBuild index 1bf10b26a7e26..2dd4b3c7b6dd8 100644 --- a/games/ltris/ltris.SlackBuild +++ b/games/ltris/ltris.SlackBuild @@ -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 diff --git a/games/ltris/ltris.info b/games/ltris/ltris.info index 5824d13ae4979..8cd49406f7c1d 100644 --- a/games/ltris/ltris.info +++ b/games/ltris/ltris.info @@ -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" diff --git a/games/ltris/slack-desc b/games/ltris/slack-desc index 512a9f4a450ce..aa5267351279d 100644 --- a/games/ltris/slack-desc +++ b/games/ltris/slack-desc @@ -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: |