diff options
author | Frank Caraballo <fecaraballo[AT]gmail.com> | 2010-05-11 19:44:41 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 19:44:41 +0200 |
commit | 786fce7190d0cc978e1017e677e61ec068fcd2d9 (patch) | |
tree | 90459b6cb7d65c6afc93be569061b66d510f4250 /games/neverball/neverball.SlackBuild | |
parent | e635901aa8229a9a82c423419f20f79676a87428 (diff) | |
download | slackbuilds-786fce7190d0cc978e1017e677e61ec068fcd2d9.tar.gz |
games/neverball: Updated for version 1.4.0
Diffstat (limited to 'games/neverball/neverball.SlackBuild')
-rw-r--r-- | games/neverball/neverball.SlackBuild | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/games/neverball/neverball.SlackBuild b/games/neverball/neverball.SlackBuild index 19c5e89612..8d2eae86a4 100644 --- a/games/neverball/neverball.SlackBuild +++ b/games/neverball/neverball.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for Neverball -# 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 @@ -22,18 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -if [ "$(id -u)" != "0" ]; then - echo "This script must be run as root!" - exit 1 -fi - PRGNAM=neverball BONUS=neverputt VERSION=1.4.0 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=`pwd` +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -52,13 +47,12 @@ cd $TMP || exit 1 rm -rf $PRGNAM-$VERSION tar -xvf $CWD/$PRGNAM-$VERSION.tar.* || exit 1 cd $PRGNAM-$VERSION || exit 1 +chown -R root:root . +chmod -R u+w,go+r-w,a-s . # Apply config.h.diff patch: cat $CWD/config.h.diff | patch -p0 --verbose || exit 1 -chown -R root:root . -chmod -R u+w,go+r-w,a-s . - CFLAGS="$SLKCFLAGS" make || exit 1 mkdir -p $PKG/usr/{bin,share/{$PRGNAM,pixmaps}} @@ -66,8 +60,10 @@ cp -a $PRGNAM $BONUS $PKG/usr/bin || exit 1 cp -a data $PKG/usr/share/$PRGNAM || exit 1 cp -a icon/* $PKG/usr/share/pixmaps || 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 +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + 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 $PDOCS $PKG/usr/doc/$PRGNAM-$VERSION |