diff options
author | Hunter Sezen <orbea@fredslev.dk> | 2018-08-12 18:42:58 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-08-18 08:39:44 +0700 |
commit | 5e66be64d4afc0b21cfdb7bb0379c96e18af9f5a (patch) | |
tree | 01cf0c558880fe912c942d283591aba676c11c49 /games/SameBoy/SameBoy.SlackBuild | |
parent | 6a2c2356442ba5c4df6c0e9a74d1e981fc8d14ba (diff) | |
download | slackbuilds-5e66be64d4afc0b21cfdb7bb0379c96e18af9f5a.tar.gz |
games/SameBoy: Updated for version 0.11.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/SameBoy/SameBoy.SlackBuild')
-rw-r--r-- | games/SameBoy/SameBoy.SlackBuild | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/games/SameBoy/SameBoy.SlackBuild b/games/SameBoy/SameBoy.SlackBuild index 7570350299..35d46e0c84 100644 --- a/games/SameBoy/SameBoy.SlackBuild +++ b/games/SameBoy/SameBoy.SlackBuild @@ -25,8 +25,8 @@ PRGNAM=SameBoy LIBNAM=$(printf %s $PRGNAM | tr 'A-Z' 'a-z')_libretro SRCNAM=${LIBNAM%%_*} -VERSION=${VERSION:-2018.04.12_51e3cb7} -RGBVERS=${RGBVERS:-0.3.6} +VERSION=${VERSION:-0.11.1} +RGBVERS=${RGBVERS:-0.3.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -43,21 +43,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -# requires patching the Makefile to properly use -# the default CFLAGS and CXXFLAGS are probably fine -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi +LIBDIRSUFFIX= +[ "$ARCH" = x86_64 ] && LIBDIRSUFFIX=64 set -eu @@ -65,7 +52,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION tar xvf $CWD/rgbds-$RGBVERS.tar.gz chown -R root:root . @@ -119,8 +106,13 @@ fi make -C libretro DEBUG=$DEBUG GIT_VERSION="${VERSION#*_}" -install -Dm0644 build/bin/$LIBNAM.so $PKG/usr/lib${LIBDIRSUFFIX}/libretro/$LIBNAM.so -install -Dm0644 $LIBNAM.info $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info +install -Dm0644 build/bin/$LIBNAM.so \ + $PKG/usr/lib${LIBDIRSUFFIX}/libretro/$LIBNAM.so + +# sameboy_libretro.info from: +# https://raw.githubusercontent.com/libretro/libretro-super/908c0384b9642bb013c9d282a3cde1911fd29aa7/dist/info/sameboy_libretro.info +install -Dm0644 $CWD/$LIBNAM-info \ + $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info if [ $DEBUG = 0 ]; then find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ |