[arch-commits] Commit in libretro-ppsspp/trunk (2 files)

Maxime Gauduin alucryd at archlinux.org
Wed Dec 16 16:22:01 UTC 2020


    Date: Wednesday, December 16, 2020 @ 16:22:00
  Author: alucryd
Revision: 776784

upgpkg: libretro-ppsspp 28668-1

Added:
  libretro-ppsspp/trunk/libretro-ppsspp-assets-path.patch
Modified:
  libretro-ppsspp/trunk/PKGBUILD

-----------------------------------+
 PKGBUILD                          |   13 ++++++++++---
 libretro-ppsspp-assets-path.patch |   11 +++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-16 16:21:47 UTC (rev 776783)
+++ PKGBUILD	2020-12-16 16:22:00 UTC (rev 776784)
@@ -1,8 +1,9 @@
 # Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Wouter Wijsman <wwijsman at live.nl>
 # Contributor: Duck Hunt <vaporeon at tfwno.gf>
 
 pkgname=libretro-ppsspp
-pkgver=28609
+pkgver=28668
 pkgrel=1
 pkgdesc='Sony PlayStation Portable core'
 arch=(x86_64)
@@ -26,7 +27,7 @@
   libglvnd
   python
 )
-_commit=b8ccd7fae7563af0a1a92573a1f3359a282811a1
+_commit=73da378efda65ec801b24d415ebd16b5f26503a3
 source=(
   libretro-ppsspp::git+https://github.com/hrydgard/ppsspp.git#commit=${_commit}
   git+https://github.com/Kingcom/armips.git
@@ -38,6 +39,7 @@
   git+https://github.com/Tencent/rapidjson.git
   git+https://github.com/KhronosGroup/SPIRV-Cross.git
   armips-tinyformat::git+https://github.com/Kingcom/tinyformat.git
+  libretro-ppsspp-assets-path.patch
 )
 sha256sums=('SKIP'
             'SKIP'
@@ -48,7 +50,8 @@
             'SKIP'
             'SKIP'
             'SKIP'
-            'SKIP')
+            'SKIP'
+            '2234ab0c53849ed728889305a68119a365da16094a1b7ac2c4d2a2ababe5c8f5')
 
 pkgver() {
   cd libretro-ppsspp
@@ -59,6 +62,8 @@
 prepare() {
   cd libretro-ppsspp
 
+  patch -Np1 -i ../libretro-ppsspp-assets-path.patch
+
   for submodule in ffmpeg assets/lang ext/glslang ext/miniupnp; do
     git submodule init ${submodule}
     git config submodule.${submodule}.url ../ppsspp-${submodule#*/}
@@ -98,6 +103,8 @@
 package() {
   install -Dm 644 build/lib/ppsspp_libretro.so -t "${pkgdir}"/usr/lib/libretro/
   install -Dm 644 libretro-ppsspp/LICENSE.TXT -t "${pkgdir}"/usr/share/licenses/libretro-ppsspp-git/
+  install -dm 755 "${pkgdir}"/usr/share/libretro/ppsspp
+  cp -dr --no-preserve=ownership build/assets "${pkgdir}"/usr/share/libretro/ppsspp/
 }
 
 # vim: ts=2 sw=2 et:

Added: libretro-ppsspp-assets-path.patch
===================================================================
--- libretro-ppsspp-assets-path.patch	                        (rev 0)
+++ libretro-ppsspp-assets-path.patch	2020-12-16 16:22:00 UTC (rev 776784)
@@ -0,0 +1,11 @@
+--- libretro-ppsspp.orig/libretro/libretro.cpp	2020-10-08 22:13:25.641893000 +0200
++++ libretro-ppsspp/libretro/libretro.cpp	2020-10-10 01:21:00.000136872 +0200
+@@ -601,6 +601,7 @@
+    g_Config.internalDataDirectory = retro_base_dir;
+ 
+    VFSRegister("", new DirectoryAssetReader(retro_base_dir.c_str()));
++   VFSRegister("", new DirectoryAssetReader("/usr/share/libretro/ppsspp/assets/"));
+ 
+    coreState = CORE_POWERUP;
+    ctx       = LibretroGraphicsContext::CreateGraphicsContext();
+



More information about the arch-commits mailing list