diff options
author | Frank Caraballo <fecaraballo{at}gmail{dot}com> | 2010-05-12 17:39:20 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 17:39:20 +0200 |
commit | 4edb8d519543e1db9a442e09bb817407f7849840 (patch) | |
tree | 0051e96706fa2c0202aa7bcd6098581033b652fd /games/lbreakout2/lbreakout2.SlackBuild | |
parent | fa216410db68135df67deb45c7fabd0e05c906d2 (diff) | |
download | slackbuilds-4edb8d519543e1db9a442e09bb817407f7849840.tar.gz |
games/lbreakout2: Updated for version 2.6beta7
Diffstat (limited to 'games/lbreakout2/lbreakout2.SlackBuild')
-rw-r--r-- | games/lbreakout2/lbreakout2.SlackBuild | 53 |
1 files changed, 29 insertions, 24 deletions
diff --git a/games/lbreakout2/lbreakout2.SlackBuild b/games/lbreakout2/lbreakout2.SlackBuild index 36429b2787..307f4fa28b 100644 --- a/games/lbreakout2/lbreakout2.SlackBuild +++ b/games/lbreakout2/lbreakout2.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for LBreakout2 -# Copyright 2007 Frank Caraballo <fecaraballo[AT]gmail.com> +# Copyright 2007, 2008 Frank Caraballo <fecaraballo{at}gmail{dot}com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,61 +22,66 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Modified by the SlackBuilds.org project - -set -e - PRGNAM=lbreakout2 -VERSION=2.6beta-7 -PKG_VERSION=2.6beta7 +VERSION=${VERSION:-2.6beta7} ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -PDOCS="ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL NEWS README README-SDL.txt TODO" - 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 $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-2.6beta-7 +tar xvf $CWD/$PRGNAM-2.6beta-7.tar.gz +cd $PRGNAM-2.6beta-7 chown -R root:root . -chmod -R u+w,go+r-w,a-s . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ - --localstatedir=/var/lib/lgames + --localstatedir=/var/lib/lgames \ + --enable-sdl-net \ + --build=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG -mkdir -p $PKG/usr/doc/$PRGNAM-$PKG_VERSION -cp -a $PDOCS $PKG/usr/doc/$PRGNAM-$PKG_VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$PKG_VERSION/$PRGNAM.SlackBuild -# Move auto-installed doc files to correct location: -mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$PKG_VERSION/HTML +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL NEWS README* TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION/HTML -# Install desktop file and link icon to /usr/share/pixmaps mkdir -p $PKG/usr/share/{applications,pixmaps} cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop -( cd $PKG/usr/share/pixmaps ; ln -s ../$PRGNAM/gfx/win_icon.png lbreakout2.png ) +( cd $PKG/usr/share/pixmaps + ln -s ../lbreakout2/gfx/win_icon.png lbreakout2.png +) mkdir -p $PKG/install -cat $CWD/doinst.sh > $PKG/install/doinst.sh 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-$PKG_VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |