diff options
author | Bill Kirkpatrick <bkirkp@gmail.com> | 2010-05-11 14:28:20 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 14:28:20 +0200 |
commit | d11907445d1fe54bc65fb98fc5ced101bd80342e (patch) | |
tree | 8eeed0101333e199f0a22cba14b2d78aada5738f /games/ltris/ltris.SlackBuild | |
parent | 4cce41897c16a2848575a189a251bf95dab44068 (diff) | |
download | slackbuilds-d11907445d1fe54bc65fb98fc5ced101bd80342e.tar.gz |
games/ltris: Initial import
Diffstat (limited to 'games/ltris/ltris.SlackBuild')
-rw-r--r-- | games/ltris/ltris.SlackBuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/games/ltris/ltris.SlackBuild b/games/ltris/ltris.SlackBuild new file mode 100644 index 0000000000..b946e9b4cb --- /dev/null +++ b/games/ltris/ltris.SlackBuild @@ -0,0 +1,54 @@ +#!/bin/sh + +# Slackware build script for LTris + +# Written by Bill Kirkpatrick <bkirkp@gmail.com> + +PRGNAM=ltris +VERSION=1.0.11 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=`pwd` +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf $PRGNAM-$VERSION +tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +cd $PRGNAM-$VERSION || exit 1 +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + || exit 1 + +make || exit 1 +make install DESTDIR=$PKG || exit 1 + +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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 |