diff options
author | Hunter Sezen <ovariegata@yahoo.com> | 2017-08-08 23:35:19 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-08-12 06:57:35 +0700 |
commit | 61039d808e95cfc4978bf5387dd01929b46039be (patch) | |
tree | dc5c5714e76fc34ce43d11f5983634e9ae93c215 /games/mupen64plus-libretro/mupen64plus-libretro.SlackBuild | |
parent | c9ec4a74fab760ff8418208613de4d993159a03c (diff) |
games/mupen64plus-libretro: Updated for version 2017.07.22_9b01671.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/mupen64plus-libretro/mupen64plus-libretro.SlackBuild')
-rw-r--r-- | games/mupen64plus-libretro/mupen64plus-libretro.SlackBuild | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/games/mupen64plus-libretro/mupen64plus-libretro.SlackBuild b/games/mupen64plus-libretro/mupen64plus-libretro.SlackBuild index dc949025055c5..86554b33f5b7a 100644 --- a/games/mupen64plus-libretro/mupen64plus-libretro.SlackBuild +++ b/games/mupen64plus-libretro/mupen64plus-libretro.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for mupen64plus-libretro -# Copyright 2016 Hunter Sezen +# Copyright 2017 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=mupen64plus-libretro -LIBNAM=$(echo $PRGNAM | tr - _) -VERSION=${VERSION:-2017.02.04_78f37eca} +LIBNAM=$(printf %s "$PRGNAM" | tr - _) +VERSION=${VERSION:-2017.07.22_9b01671} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -59,17 +59,7 @@ fi DEBUG=${DEBUG:-0} GLES=${GLES:-0} -VULKAN=${VULKAN:-0} -if [ "$VULKAN" = "1" ]; then - if [ "$DEBUG" = "1" ]; then - LIBNAM=$(echo $LIBNAM | sed 's/mupen64plus/parallel_debug/') - else - LIBNAM=$(echo $LIBNAM | sed 's/mupen64plus/parallel/') - fi - VULKAN_DEBUG=$DEBUG -else - VULKAN_DEBUG=0 -fi +GLES3=${GLES3:-0} set -e @@ -86,32 +76,41 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -make DEBUG=$DEBUG \ - GIT_VERSION=${VERSION#*_} \ - FORCE_GLES=$GLES \ - HAVE_VULKAN=$VULKAN \ - HAVE_VULKAN_DEBUG=$VULKAN_DEBUG +make DEBUG="$DEBUG" \ + GIT_VERSION="${VERSION#*_}" \ + FORCE_GLES="$GLES" \ + FORCE_GLES3="$GLES3" install -Dm0644 $LIBNAM.so $PKG/usr/lib${LIBDIRSUFFIX}/libretro/$LIBNAM.so install -Dm0644 $LIBNAM.info $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info -if [ "$DEBUG" = "0" ]; then +if [ "$DEBUG" = 0 ]; then 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 fi -PLUGIN="glide2gl mupen64plus-core mupen64plus-rsp-* mupen64plus-video-paraLLEl mupen64plus-video-angrylion" -DOCS="COPYING CREDITS.txt INSTALL LICENSES MAME* README.md README RELEASE todo!.txt" +PLUGIN='GLideN64 mupen64plus-core mupen64plus-rsp-cxd4 mupen64plus-rsp-hle' +DOCS='gpl-2.0.txt COPYING INSTALL LICENSES LICENSE README.md README RELEASE' for DOCDIR in $PLUGIN; do mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/$DOCDIR + if [ "$DOCDIR" = GLideN64 ]; then + for DIR in GlideHQ Glow gles2n64; do + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/$DOCDIR/$DIR + for file in $DOCS; do + if [ -f $DOCDIR/licenses/$DIR/$file ]; then + cp -a $DOCDIR/licenses/$DIR/$file $PKG/usr/doc/$PRGNAM-$VERSION/$DOCDIR/$DIR + fi + done + done + fi for file in $DOCS; do if [ -f $DOCDIR/$file ]; then cp -a $DOCDIR/$file $PKG/usr/doc/$PRGNAM-$VERSION/$DOCDIR fi done done -cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a *.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |