diff options
Diffstat (limited to 'games/mgba/mgba.SlackBuild')
-rw-r--r-- | games/mgba/mgba.SlackBuild | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/games/mgba/mgba.SlackBuild b/games/mgba/mgba.SlackBuild index c4edefe1b8e64..bf31fdb0d0e55 100644 --- a/games/mgba/mgba.SlackBuild +++ b/games/mgba/mgba.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for mgba # Copyright 2015 Dugan Chen Canada +# Copyright 2019-2020 Ruoh-Shoei LIN # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,8 +25,8 @@ PRGNAM=mgba LIBNAM=${PRGNAM}_libretro -VERSION=${VERSION:-0.6.3} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.8.1} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -64,7 +65,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -91,8 +92,13 @@ cd build make install DESTDIR=$PKG cd .. -install -Dm0644 $CWD/$LIBNAM.info \ - $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info +if [ -d /usr/lib${LIBDIRSUFFIX}/libretro ]; then + (echo "=== Building libretro core" + install -Dm0644 $CWD/$LIBNAM.info \ + $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info) +else + echo "=== NOT building libretro core" +fi find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -101,7 +107,8 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a CHANGES LICENSE *.md $PKG/usr/doc/$PRGNAM-$VERSION +cp CHANGES LICENSE ONTRIBUTING.md PORTING.md README.md README_DE.md \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |