diff options
author | Hunter Sezen <orbea@riseup.net> | 2019-09-21 06:01:58 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-09-21 06:01:58 +0700 |
commit | ac44ea60cd0bdfd6a34264cb693987bbd869643f (patch) | |
tree | a1e66f2b59e792065235cee75f662598f0b4b0f6 /games/SameBoy/SameBoy.SlackBuild | |
parent | 41235556234327c494e130d1873f07f551533a4b (diff) |
games/SameBoy: Updated for version 0.12.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/SameBoy/SameBoy.SlackBuild')
-rw-r--r-- | games/SameBoy/SameBoy.SlackBuild | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/games/SameBoy/SameBoy.SlackBuild b/games/SameBoy/SameBoy.SlackBuild index fe99e2ded38f7..48260796dd7a2 100644 --- a/games/SameBoy/SameBoy.SlackBuild +++ b/games/SameBoy/SameBoy.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=SameBoy LIBNAM=$(printf %s $PRGNAM | tr 'A-Z' 'a-z')_libretro SRCNAM=${LIBNAM%%_*} -VERSION=${VERSION:-0.12.1} +VERSION=${VERSION:-0.12.2} RGBVERS=${RGBVERS:-0.3.8} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -48,15 +48,13 @@ LIBDIRSUFFIX= set -eu -LIBRETRO="${LIBRETRO:-yes}" - if pkg-config --exists sdl2; then - SDL="${SDL:-yes}" + STANDALONE="${STANDALONE:-yes}" else - SDL=no + STANDALONE=no fi -if [ "$LIBRETRO" != yes ] && [ "$SDL" != yes ]; then +if [ "${LIBRETRO:=yes}" != yes ] && [ "$STANDALONE" != yes ]; then printf %s\\n 'ERROR: Both the SDL2 and Libretro builds are disabled.' >&2 exit 1 fi @@ -82,11 +80,6 @@ else CONF=release fi -# Fix audio issues with some RetroArch audio drivers. Fixes #189 -# https://github.com/LIJI32/SameBoy/commit/597dc72e460f3e95caad40b8c557fb01f53f18ee -# https://github.com/LIJI32/SameBoy/issues/189 -patch -p1 < $CWD/libretro.patch - PATH="$TMP/$PRGNAM-$VERSION/rgbds-$RGBVERS/bin:$PATH" make -C rgbds-$RGBVERS Q= @@ -94,7 +87,7 @@ make -C rgbds-$RGBVERS install Q= \ PREFIX=. \ DESTDIR=./ -if [ "$SDL" = yes ]; then +if [ "$STANDALONE" = yes ]; then make CONF=$CONF DATA_DIR=/usr/share/games/$SRCNAM/ mkdir -p $PKG/usr/games $PKG/usr/share/games cp -av build/bin/SDL $PKG/usr/share/games/$SRCNAM |