diff options
author | B. Watson <yalhcru@gmail.com> | 2015-05-12 18:20:33 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-05-17 23:45:52 +0700 |
commit | 892f2139a6fbd8a398d5b9b1f82de5293349f269 (patch) | |
tree | aa87ef41dfaeddbe6936dae8e45a5f41487461de /games/mrrescue/mrrescue.SlackBuild | |
parent | a7e5bc46002fe30a16c5ca4f26da3327504188c4 (diff) | |
download | slackbuilds-892f2139a6fbd8a398d5b9b1f82de5293349f269.tar.gz |
games/mrrescue: Updated for version 1.02c.
Diffstat (limited to 'games/mrrescue/mrrescue.SlackBuild')
-rw-r--r-- | games/mrrescue/mrrescue.SlackBuild | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/games/mrrescue/mrrescue.SlackBuild b/games/mrrescue/mrrescue.SlackBuild index 4ef115db1f..b9854498f6 100644 --- a/games/mrrescue/mrrescue.SlackBuild +++ b/games/mrrescue/mrrescue.SlackBuild @@ -7,7 +7,7 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. PRGNAM=mrrescue -VERSION=${VERSION:-1.02b} +VERSION=${VERSION:-1.02c} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -20,20 +20,22 @@ OUTPUT=${OUTPUT:-/tmp} set -e -SRCNAM="$PRGNAM-$VERSION-love" - rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM -unzip $CWD/$SRCNAM.zip -cd $SRCNAM +rm -rf $PRGNAM-$VERSION +mkdir -p $PRGNAM-$VERSION +cd $PRGNAM-$VERSION + +# the source is also the binary. we only need to extract +# any documentation (which boilds down to one file): +unzip $CWD/$PRGNAM-$VERSION.love LICENSE # no find/chmod boilerplate, explicit permissions mkdir -p $PKG/usr/games -echo '#!/usr/bin/env love-0.8.0' > $PKG/usr/games/$PRGNAM -cat $PRGNAM.love >> $PKG/usr/games/$PRGNAM +echo '#!/usr/bin/env love' > $PKG/usr/games/$PRGNAM +cat $CWD/$PRGNAM-$VERSION.love >> $PKG/usr/games/$PRGNAM chmod 755 $PKG/usr/games/$PRGNAM # icon is a piece of data/splash.png from the payload file, chopped up @@ -46,7 +48,7 @@ mkdir -p $PKG/usr/share/applications cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -install -oroot -groot -m0644 *.txt $PKG/usr/doc/$PRGNAM-$VERSION +install -oroot -groot -m0644 LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |