Subject: [PATCH] testing/retroarch: patch default config to use system directories

From: Bart Ribbers <[email-masked]>
Date: Sat, 13 Jul 2019 00:23:02 +0200

---
This way the assets and libretro cores will be picked up automatically without the user having to change anything

 testing/retroarch/APKBUILD     |  8 +++++---
 testing/retroarch/config.patch | 35 ++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 3 deletions(-)
 create mode 100644 testing/retroarch/config.patch

diff --git a/testing/retroarch/APKBUILD b/testing/retroarch/APKBUILD
index f644288f07..fd726eade9 100644
--- a/testing/retroarch/APKBUILD
+++ b/testing/retroarch/APKBUILD
@@ -3,14 +3,15 @@
 pkgname=retroarch
 _pkgname=RetroArch
 pkgver=1.7.7
-pkgrel=1
+pkgrel=2
 arch="all"
 url="https://www.libretro.com/"
 pkgdesc="Reference frontend for the libretro API"
 license="GPL-2.0-only"
 depends="retroarch-assets"
 makedepends="linux-headers mesa-dev qt5-qtbase-dev wayland-dev wayland-protocols zlib-dev alsa-lib-dev pulseaudio-dev sdl2-dev flac-dev mbedtls-dev libusb-dev ffmpeg-dev libxkbcommon-dev eudev-dev vulkan-loader-dev"
-source="$pkgname-$pkgver.tar.gz::https://github.com/libretro/$pkgname/archive/v$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/libretro/$pkgname/archive/v$pkgver.tar.gz
+	config.patch"
 subpackages="$pkgname-doc"
 builddir="$srcdir/$_pkgname-$pkgver"
 options="!check" # No tests
@@ -33,4 +34,5 @@ package() {
 	DESTDIR="$pkgdir" make install
 }
 
-sha512sums="4ad70f092d1de34de5c4d2d83bae93ca26a1461e45e6bc17bbce9f3d6498d5639a3f97aa5881af29750377a819d4710c94a144450a3af54e0014b60790ba7155  retroarch-1.7.7.tar.gz"
+sha512sums="4ad70f092d1de34de5c4d2d83bae93ca26a1461e45e6bc17bbce9f3d6498d5639a3f97aa5881af29750377a819d4710c94a144450a3af54e0014b60790ba7155  retroarch-1.7.7.tar.gz
+4d17bb19fda8ba526b86c2283c39e06861c5bf603d969bfdabb30da03aba3307b4a0cdfc57b632ebf5c08abb9535b9dc0ccb4baf28aab6fcee6a42acfe846d73  config.patch"
diff --git a/testing/retroarch/config.patch b/testing/retroarch/config.patch
new file mode 100644
index 0000000000..fc5359975c
--- /dev/null
+++ b/testing/retroarch/config.patch
@@ -0,0 +1,35 @@
+diff --git a/retroarch.cfg b/retroarch.cfg
+index 9d7c109bfe..f62b3018a2 100644
+--- a/retroarch.cfg
++++ b/retroarch.cfg
+@@ -642,7 +642,7 @@
+ # menu_show_online_updater = true
+ 
+ # If disabled, will hide the ability to update cores (and core info files) inside the menu.
+-# menu_show_core_updater = true
++menu_show_core_updater = false
+ 
+ # If disabled, the libretro core will keep running in the background when we
+ # are in the menu.
+@@ -771,7 +771,7 @@
+ 
+ # Assets directory. This location is queried by default when menu interfaces try to look for
+ # loadable assets, etc.
+-# assets_directory =
++assets_directory = /usr/share/libretro/assets
+ 
+ # Dynamic wallpapers directory. The place to store the wallpapers dynamically
+ # loaded by the menu depending on context.
+@@ -784,10 +784,10 @@
+ # rgui_browser_directory =
+ 
+ # Core directory for libretro core implementations.
+-# libretro_directory =
++libretro_directory = /usr/lib/libretro
+ 
+ # Core info directory for libretro core information.
+-# libretro_info_path =
++libretro_info_path = /usr/share/libretro/info
+ 
+ # Path to content database directory.
+ # content_database_path =
-- 
2.22.0