Subject: [PATCH] testing/retroarch: set joypad autoconfig path

From: Bart Ribbers <[email-masked]>
Date: Mon, 26 Aug 2019 11:50:39 +0200

---
 testing/retroarch/APKBUILD     |  6 +++---
 testing/retroarch/config.patch | 11 ++++++++++-
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/testing/retroarch/APKBUILD b/testing/retroarch/APKBUILD
index 6136050ec5..3d39c42057 100644
--- a/testing/retroarch/APKBUILD
+++ b/testing/retroarch/APKBUILD
@@ -3,14 +3,14 @@
 pkgname=retroarch
 _pkgname=RetroArch
 pkgver=1.7.7
-pkgrel=5
+pkgrel=6
 arch="all"
 url="https://retroarch.com"
 pkgdesc="Reference frontend for the libretro API"
 license="GPL-2.0-only"
 depends="retroarch-assets retroarch-joypad-autoconfig libretro-core-info libretro-database"
 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/retroarch/archive/v$pkgver.tar.gz
 	config.patch"
 subpackages="$pkgname-doc"
 builddir="$srcdir/$_pkgname-$pkgver"
@@ -35,4 +35,4 @@ package() {
 }
 
 sha512sums="4ad70f092d1de34de5c4d2d83bae93ca26a1461e45e6bc17bbce9f3d6498d5639a3f97aa5881af29750377a819d4710c94a144450a3af54e0014b60790ba7155  retroarch-1.7.7.tar.gz
-5a52f852831f7cef272373e100bd740c98a50ed52531ef1c5a715a4e648ca859f6243104ff13d2ba243f579d06b9658389155d3a09dc324712d3d63a56ebf578  config.patch"
+55c08dc1d32c24b7fa15d9d843180d04147d0233eaf8cee6fb83d7393fc470f94aa16f22f6d10e75f2c66675979b2365993918fa11aaa32dc1f7951c7bca7038  config.patch"
diff --git a/testing/retroarch/config.patch b/testing/retroarch/config.patch
index 0fa34e3c98..c1b328c1cc 100644
--- a/testing/retroarch/config.patch
+++ b/testing/retroarch/config.patch
@@ -1,5 +1,5 @@
 diff --git a/retroarch.cfg b/retroarch.cfg
-index 9d7c109bfe..648fee1dc1 100644
+index 9d7c109bfe..3692e1af29 100644
 --- a/retroarch.cfg
 +++ b/retroarch.cfg
 @@ -639,10 +639,10 @@
@@ -57,3 +57,12 @@ index 9d7c109bfe..648fee1dc1 100644
  
  # Defines a directory where CPU-based video filters are kept.
  # video_filter_dir =
+@@ -825,7 +825,7 @@
+ # Input binds which are made explicit (input_playerN_*_btn/axis) will take priority over autoconfigs.
+ # Autoconfigs can be created with retroarch-joyconfig, manually, or with a frontend.
+ # Requires input_autodetect_enable to be enabled.
+-# joypad_autoconfig_dir =
++joypad_autoconfig_dir = /usr/share/libretro/autoconfig
+ 
+ # Save all remapped controls to this directory.
+ # input_remapping_directory =
-- 
2.23.0