diff options
-rw-r--r-- | games/lightyears/lightyears.SlackBuild | 22 | ||||
-rw-r--r-- | games/lightyears/lightyears.info | 10 | ||||
-rw-r--r-- | games/lightyears/slack-desc | 14 |
3 files changed, 19 insertions, 27 deletions
diff --git a/games/lightyears/lightyears.SlackBuild b/games/lightyears/lightyears.SlackBuild index 0f89873b6611..4816e70a5856 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 diff --git a/games/lightyears/lightyears.info b/games/lightyears/lightyears.info index 3b5d820ec7bb..dd4ec5f07fb1 100644 --- a/games/lightyears/lightyears.info +++ b/games/lightyears/lightyears.info @@ -1,10 +1,10 @@ PRGNAM="lightyears" -VERSION="1.3a" +VERSION="1.4" HOMEPAGE="http://www.jwhitham.org.uk/20kly/" -DOWNLOAD="http://www.jwhitham.org.uk/20kly/lightyears-1.3a.tar.gz" -MD5SUM="4f6fad3980f85e20937a58e30ded851e" +DOWNLOAD="http://www.jwhitham.org.uk/20kly/lightyears-1.4.tar.bz2" +MD5SUM="1211f6c9f368e3d8053965b3e42dcdcd" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Matthew Fillpot" -EMAIL="mfillpot@gmail.com" -APPROVED="dsomero" +EMAIL="mfilpot@gmail.com" +APPROVED="dsomero,Niels Horn" diff --git a/games/lightyears/slack-desc b/games/lightyears/slack-desc index 95f8d4a51542..752ef50821fa 100644 --- a/games/lightyears/slack-desc +++ b/games/lightyears/slack-desc @@ -5,15 +5,15 @@ # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. - |-----handy-ruler----------------------------------------------------| + |-----handy-ruler------------------------------------------------------| lightyears: lightyears (20,000 Light Years Into Space) -lightyears: -lightyears: 20,000 Light Years Into Space is a steampunk-themed strategy game -lightyears: where you have to manage a steam supply network. It is written in +lightyears: +lightyears: 20,000 Light Years Into Space is a steampunk-themed strategy game +lightyears: where you have to manage a steam supply network. It is written in lightyears: Python and runs on Windows and Linux. lightyears: -lightyears: +lightyears: lightyears: Homepage: http://www.jwhitham.org.uk/20kly/ -lightyears: lightyears: -lightyears: +lightyears: +lightyears: |