diff options
Diffstat (limited to 'games/RetroArch/RetroArch.SlackBuild')
-rw-r--r-- | games/RetroArch/RetroArch.SlackBuild | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/games/RetroArch/RetroArch.SlackBuild b/games/RetroArch/RetroArch.SlackBuild index 50a6b51e605d2..3c46c57a4e1ba 100644 --- a/games/RetroArch/RetroArch.SlackBuild +++ b/games/RetroArch/RetroArch.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=RetroArch VERSION=${VERSION:-1.7.3} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -105,14 +105,18 @@ fi # https://github.com/libretro/RetroArch/issues/3237 SED_CORE=; SED_INFO=; SED_MENU= if [ "${BUILDBOT:-0}" = 0 ]; then - SED_CORE="s|# libretro_directory =|libretro_directory = /usr/lib${LIBDIRSUFFIX}/libretro|" - SED_INFO="s|# libretro_info_path =|libretro_info_path = /usr/lib${LIBDIRSUFFIX}/libretro/info|" + libdir="/usr/lib${LIBDIRSUFFIX}/libretro" + infodir="${libdir}/info" + SED_CORE="s|# libretro_directory =|libretro_directory = $libdir|" + SED_INFO="s|# libretro_info_path =|libretro_info_path = $infodir|" SED_MENU='s|# menu_show_core_updater = true|menu_show_core_updater = false|' fi -# Set the config file default directories to be consistent with the installation. -sed -e "s|# audio_filter_dir =|audio_filter_dir = /usr/lib${LIBDIRSUFFIX}/retroarch/filters/audio|" \ - -e "s|# video_filter_dir =|video_filter_dir = /usr/lib${LIBDIRSUFFIX}/retroarch/filters/video|" \ +filter_dir="/usr/lib${LIBDIRSUFFIX}/retroarch/filters" + +# Set the default filter directories to be consistent with the installation. +sed -e "s|# audio_filter_dir =|audio_filter_dir = ${filter_dir}/audio|" \ + -e "s|# video_filter_dir =|video_filter_dir = ${filter_dir}/video|" \ -e "$SED_CORE;$SED_INFO;$SED_MENU" \ -i retroarch.cfg @@ -121,6 +125,17 @@ sed -e "s|# audio_filter_dir =|audio_filter_dir = /usr/lib${LIBDIRSUFFIX}/retroa # https://github.com/libretro/RetroArch/issues/6726 zcat $CWD/qt.patch.gz | patch -p1 +# Fix a calloc(0) which led to uninitialized data being used later on. +# https://github.com/libretro/RetroArch/commit/8cd8e7d3ae07aa772f0d8c09df7ee10290259c65 +# https://github.com/libretro/RetroArch/pull/6835 +zcat $CWD/calloc.patch.gz | patch -p1 + +# Fixed bug that let Retroarch proceed to retro_run without loading content +# https://github.com/libretro/RetroArch/commit/0e34c12d5c8ea2f861dc29df240c1dc68657d2cf +# https://github.com/libretro/RetroArch/pull/7090 +# https://github.com/libretro/RetroArch/issues/7082 +zcat $CWD/no_content.patch.gz | patch -p1 + # Set $lib to a portable array eval "set -- $lib" |