summaryrefslogtreecommitdiff
path: root/games/RetroArch/RetroArch.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/RetroArch/RetroArch.SlackBuild')
-rw-r--r--games/RetroArch/RetroArch.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/games/RetroArch/RetroArch.SlackBuild b/games/RetroArch/RetroArch.SlackBuild
index 861886605d..892174ec35 100644
--- a/games/RetroArch/RetroArch.SlackBuild
+++ b/games/RetroArch/RetroArch.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=RetroArch
VERSION=${VERSION:-1.7.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -123,6 +123,12 @@ sed -e "s|# audio_filter_dir =|audio_filter_dir = ${filter_dir}/audio|" \
-e "$SED_CORE;$SED_INFO;$SED_MENU" \
-i retroarch.cfg
+# Fix KMS with OpenGL.
+# https://github.com/libretro/RetroArch/commit/5898f3e5d22b930a1050a59b61e98ecd07dd6977
+# https://github.com/libretro/RetroArch/issues/7119
+# https://github.com/libretro/RetroArch/pull/7708
+patch -p1 < $CWD/kms.patch
+
# Set $lib to a portable array
eval "set -- $lib"
@@ -161,8 +167,8 @@ done
mv $PKG/etc/retroarch.cfg $PKG/etc/retroarch.cfg.new
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
+ 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
find $PKG/usr/man -type f -exec gzip -9 {} \;