diff options
author | Matthew Fillpot <mfilpot@gmail.com> | 2011-09-23 17:41:48 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-09-23 17:41:48 -0300 |
commit | 61e64e3e069f84a51c3b4ba184bee98d8fbcda31 (patch) | |
tree | 4752e6bb694991b9dfe3283df447ea2b3471b1d9 /games/lightyears/lightyears.SlackBuild | |
parent | da775d6f1e0d06dcf1588aaa0272d524ad80e285 (diff) |
games/lightyears: Updated for version 1.4.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'games/lightyears/lightyears.SlackBuild')
-rw-r--r-- | games/lightyears/lightyears.SlackBuild | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/games/lightyears/lightyears.SlackBuild b/games/lightyears/lightyears.SlackBuild index 0f89873b66111..4816e70a58564 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 |