diff options
author | Hunter Sezen <ovariegata@yahoo.com> | 2017-12-21 20:39:16 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-12-23 07:12:36 +0700 |
commit | 66c135cf42513841286b7d32d1dfcf1a3bce9067 (patch) | |
tree | 305090248a370ac94bf1a87448c6666e5c6fa7e2 /games/beetle-saturn-libretro/beetle-saturn-libretro.SlackBuild | |
parent | 6af19b7da607655f47913f4ce0787edf92e6aa40 (diff) |
games/beetle-saturn-libretro: Updated for v. 2017.12.20_a0a6dad.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/beetle-saturn-libretro/beetle-saturn-libretro.SlackBuild')
-rw-r--r-- | games/beetle-saturn-libretro/beetle-saturn-libretro.SlackBuild | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/games/beetle-saturn-libretro/beetle-saturn-libretro.SlackBuild b/games/beetle-saturn-libretro/beetle-saturn-libretro.SlackBuild index 4c652d07ae851..32c80e5cda937 100644 --- a/games/beetle-saturn-libretro/beetle-saturn-libretro.SlackBuild +++ b/games/beetle-saturn-libretro/beetle-saturn-libretro.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=beetle-saturn-libretro LIBNAM=mednafen_saturn_libretro -VERSION=${VERSION:-2017.01.24_bb5d0c1} +VERSION=${VERSION:-2017.12.20_a0a6dad} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -44,11 +44,11 @@ OUTPUT=${OUTPUT:-/tmp} # requires patching the Makefile to properly use # the default CFLAGS and CXXFLAGS are probably fine if [ "$ARCH" = "i586" ]; then - echo "$ARCH is not supported." - exit 1 + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - echo "$ARCH is not supported." - exit 1 + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" @@ -57,9 +57,7 @@ else LIBDIRSUFFIX="" fi -DEBUG=${DEBUG:-0} - -set -e +set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -74,12 +72,14 @@ 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 {} \; +[ "${DEBUG:=0}" != 0 ] && DEBUG=1 + make DEBUG=$DEBUG 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 |