diff options
author | Frank Caraballo <fecaraballo[AT]gmail.com> | 2010-05-11 19:44:37 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 19:44:37 +0200 |
commit | afe6169c6954ecc12be12f5dc625c50e99461040 (patch) | |
tree | 5a5e1379fdf80218338f18898baf60e40249e81a /games/lbreakout2/lbreakout2.SlackBuild | |
parent | 9297ea606461d9e227c321614916883ef5dcd94f (diff) |
games/lbreakout2: Updated for version 2.6beta7
Diffstat (limited to 'games/lbreakout2/lbreakout2.SlackBuild')
-rw-r--r-- | games/lbreakout2/lbreakout2.SlackBuild | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/games/lbreakout2/lbreakout2.SlackBuild b/games/lbreakout2/lbreakout2.SlackBuild index 8c27e93c7f152..36429b278774d 100644 --- a/games/lbreakout2/lbreakout2.SlackBuild +++ b/games/lbreakout2/lbreakout2.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for LBreakout2 -# Copyright 2007 MagicMan <MagicMan07@bluebottle.com> +# Copyright 2007 Frank Caraballo <fecaraballo[AT]gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,20 +24,15 @@ # Modified by the SlackBuilds.org project -if [ "$(id -u)" != "0" ]; then - echo "This script must be run as root!" - exit 1 -fi - set -e PRGNAM=lbreakout2 VERSION=2.6beta-7 -PVERSION=2.6beta7 +PKG_VERSION=2.6beta7 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=`pwd` +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -56,7 +51,6 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION - chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -64,16 +58,16 @@ CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ - --localstatedir=/var + --localstatedir=/var/lib/lgames make make install-strip DESTDIR=$PKG -mkdir -p $PKG/usr/doc/$PRGNAM-$PVERSION -cp -a $PDOCS $PKG/usr/doc/$PRGNAM-$PVERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$PVERSION/$PRGNAM.SlackBuild +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-$PVERSION/HTML +mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$PKG_VERSION/HTML # Install desktop file and link icon to /usr/share/pixmaps mkdir -p $PKG/usr/share/{applications,pixmaps} @@ -85,4 +79,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PVERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERSION-$ARCH-$BUILD$TAG.tgz |