summaryrefslogtreecommitdiffstats
path: root/games/SameBoy/SameBoy.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/SameBoy/SameBoy.SlackBuild')
-rw-r--r--games/SameBoy/SameBoy.SlackBuild22
1 files changed, 8 insertions, 14 deletions
diff --git a/games/SameBoy/SameBoy.SlackBuild b/games/SameBoy/SameBoy.SlackBuild
index fe99e2ded3..530652bf78 100644
--- a/games/SameBoy/SameBoy.SlackBuild
+++ b/games/SameBoy/SameBoy.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for SameBoy
-# Copyright 2017-2019 Hunter Sezen California, USA
+# Copyright 2017-2020 Hunter Sezen California, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,8 +25,8 @@
PRGNAM=SameBoy
LIBNAM=$(printf %s $PRGNAM | tr 'A-Z' 'a-z')_libretro
SRCNAM=${LIBNAM%%_*}
-VERSION=${VERSION:-0.12.1}
-RGBVERS=${RGBVERS:-0.3.8}
+VERSION=${VERSION:-0.12.3}
+RGBVERS=${RGBVERS:-0.3.9}
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,10 +87,11 @@ 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
+ rm -f $PKG/usr/share/games/$SRCNAM/LICENSE
mv $PKG/usr/share/games/$SRCNAM/$SRCNAM $PKG/usr/games
else
make bootroms