aboutsummaryrefslogtreecommitdiff
path: root/games/bsnes-mercury/bsnes-mercury.SlackBuild
diff options
context:
space:
mode:
authorHunter Sezen <ovariegata@yahoo.com>2017-02-04 21:51:27 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-02-11 07:24:18 +0700
commitfa375daea0b36305298567378aa46159f0612b50 (patch)
treef1dd03482a4cb69be6d7d33e372776f971b255f0 /games/bsnes-mercury/bsnes-mercury.SlackBuild
parentb041534ba49cb7cf1a91779d50736995e62d1251 (diff)
games/bsnes-mercury: Updated for version 2017.02.04_4012862.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/bsnes-mercury/bsnes-mercury.SlackBuild')
-rw-r--r--games/bsnes-mercury/bsnes-mercury.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/games/bsnes-mercury/bsnes-mercury.SlackBuild b/games/bsnes-mercury/bsnes-mercury.SlackBuild
index 0dd91ead05583..cfeb92d10ceec 100644
--- a/games/bsnes-mercury/bsnes-mercury.SlackBuild
+++ b/games/bsnes-mercury/bsnes-mercury.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=bsnes-mercury
LIBNAM=$(echo $PRGNAM | tr - _)
-VERSION=${VERSION:-2016.07.17_a444a4e}
+VERSION=${VERSION:-2017.02.04_4012862}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -57,6 +57,8 @@ else
LIBDIRSUFFIX=""
fi
+DEBUG=${DEBUG:-0}
+
set -e
rm -rf $PKG
@@ -83,14 +85,16 @@ fi
for PROFILE in $CORE; do
CORENAM=${LIBNAM}_${PROFILE}_libretro
- make profile=$PROFILE
+ 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
-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
+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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION