diff options
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 |