summaryrefslogtreecommitdiff
path: root/games/bsnes-mercury/bsnes-mercury.SlackBuild
diff options
context:
space:
mode:
authorHunter Sezen <ovariegata@yahoo.com>2017-08-11 06:20:30 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-08-12 06:58:33 +0700
commit0f36d80fa18bfe16463b2fc09ea041cdaf00fc16 (patch)
tree33a4f5cebfd12b33324a85b8773d3f9b560ec118 /games/bsnes-mercury/bsnes-mercury.SlackBuild
parent543893ece2d59da0bcbe372b4b8f3b839ed0eff6 (diff)
downloadslackbuilds-0f36d80fa18bfe16463b2fc09ea041cdaf00fc16.tar.gz
games/bsnes-mercury: Updated for version 2017.06.28_b68bd0a.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/bsnes-mercury/bsnes-mercury.SlackBuild')
-rw-r--r--games/bsnes-mercury/bsnes-mercury.SlackBuild24
1 files changed, 11 insertions, 13 deletions
diff --git a/games/bsnes-mercury/bsnes-mercury.SlackBuild b/games/bsnes-mercury/bsnes-mercury.SlackBuild
index cfeb92d10c..80f7310253 100644
--- a/games/bsnes-mercury/bsnes-mercury.SlackBuild
+++ b/games/bsnes-mercury/bsnes-mercury.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for bsnes-mercury
-# Copyright 2016 Hunter Sezen
+# Copyright 2016-2017 Hunter Sezen
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=bsnes-mercury
LIBNAM=$(echo $PRGNAM | tr - _)
-VERSION=${VERSION:-2017.02.04_4012862}
+VERSION=${VERSION:-2017.06.28_b68bd0a}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -74,24 +74,22 @@ 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 {} \;
-if [ "$ARCH" = "arm" ]; then
- CORE="${CORE:-performance}"
-else
- CORE="${CORE:-accuracy}"
-fi
-if [ "$CORE" = "all" ]; then
- CORE="accuracy balanced performance"
-fi
+case "$ARCH" in
+ arm) CORE="${CORE:-performance}" ;;
+ *) CORE="${CORE:-accuracy}" ;;
+esac
+
+[ "$CORE" = all ] && CORE='accuracy balanced performance'
for PROFILE in $CORE; do
- CORENAM=${LIBNAM}_${PROFILE}_libretro
- make profile=$PROFILE DEBUG=$DEBUG GIT_VERSION=${VERSION#*_}
+ CORENAM="${LIBNAM}_${PROFILE}_libretro"
+ make profile="$PROFILE" DEBUG="$DEBUG" GIT_VERSION="${VERSION#*_}"
install -Dm0644 out/$CORENAM.so $PKG/usr/lib${LIBDIRSUFFIX}/libretro/$CORENAM.so
install -Dm0644 $CORENAM.info $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$CORENAM.info
make clean
done
-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