From 61e64e3e069f84a51c3b4ba184bee98d8fbcda31 Mon Sep 17 00:00:00 2001 From: Matthew Fillpot Date: Fri, 23 Sep 2011 17:41:48 -0300 Subject: games/lightyears: Updated for version 1.4. Signed-off-by: Niels Horn --- games/lightyears/lightyears.SlackBuild | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'games/lightyears/lightyears.SlackBuild') diff --git a/games/lightyears/lightyears.SlackBuild b/games/lightyears/lightyears.SlackBuild index 0f89873b66..4816e70a58 100644 --- a/games/lightyears/lightyears.SlackBuild +++ b/games/lightyears/lightyears.SlackBuild @@ -2,7 +2,7 @@ # SlackBuild script for lightyears -# Copyright 2009 Matthew "mfillpot" Fillpot +# Copyright 2011 Matthew "mfillpot" Fillpot # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,29 +23,21 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=lightyears -VERSION=${VERSION:-1.3a} +VERSION=${VERSION:-1.4} +ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) ARCH=$( uname -m ) ;; - esac -fi - CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -rm -rf $TMP/$PRGNAM-$VERSION $PKG +rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP || exit 1 -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 cd $PRGNAM-$VERSION || exit 1 chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -60,7 +52,7 @@ cp -a data/32.png $PKG/usr/share/pixmaps/lightyears.png cp $CWD/lightyears.desktop $PKG/usr/share/applications/ # modify and copy the executable script -sed -i "s/lightyears/$PRGNAM-$VERSION/g" lightyears +sed -i -e "4 s,.*,LIGHTYEARS_DIR = \"\\/usr\\/share\\/games\\/$PRGNAM-$VERSION\"," lightyears install -m 755 -D lightyears $PKG/usr/games/lightyears # move the documentation -- cgit v1.2.3