[arch-commits] Commit in libretro-ppsspp/repos (3 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Sun Mar 6 15:55:41 UTC 2022
Date: Sunday, March 6, 2022 @ 15:55:41
Author: foutrelis
Revision: 1142607
archrelease: copy trunk to community-staging-x86_64
Added:
libretro-ppsspp/repos/community-staging-x86_64/
libretro-ppsspp/repos/community-staging-x86_64/PKGBUILD
(from rev 1142605, libretro-ppsspp/trunk/PKGBUILD)
libretro-ppsspp/repos/community-staging-x86_64/libretro-ppsspp-assets-path.patch
(from rev 1142605, libretro-ppsspp/trunk/libretro-ppsspp-assets-path.patch)
-----------------------------------+
PKGBUILD | 112 ++++++++++++++++++++++++++++++++++++
libretro-ppsspp-assets-path.patch | 12 +++
2 files changed, 124 insertions(+)
Copied: libretro-ppsspp/repos/community-staging-x86_64/PKGBUILD (from rev 1142605, libretro-ppsspp/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-03-06 15:55:41 UTC (rev 1142607)
@@ -0,0 +1,112 @@
+# 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=31606
+pkgrel=2
+pkgdesc='Sony PlayStation Portable core'
+arch=(x86_64)
+url=https://github.com/libretro/ppsspp
+license=(GPL2)
+groups=(libretro)
+depends=(
+ gcc-libs
+ glew
+ glibc
+ libgl
+ libpng
+ libretro-core-info
+ libzip
+ ppsspp-assets
+ sdl2
+ snappy
+ zlib
+ zstd
+)
+makedepends=(
+ cmake
+ git
+ libglvnd
+ ninja
+ python
+)
+_commit=b1d158e3e6a9ed30fc3ac2177c438abd84343e4c
+source=(
+ libretro-ppsspp::git+https://github.com/hrydgard/ppsspp.git#commit=${_commit}
+ git+https://github.com/Kingcom/armips.git
+ git+https://github.com/hrydgard/ppsspp-ffmpeg.git
+ ppsspp-glslang::git+https://github.com/hrydgard/glslang.git
+ git+https://github.com/hrydgard/ppsspp-lang.git
+ ppsspp-miniupnp::git+https://github.com/hrydgard/miniupnp.git
+ 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
+)
+b2sums=('SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'c72640695e3e3b9512f13d71956872cea34b41cf28bd31c7dbd8062e1166d5ae8f248b01d6f5c73dd96d3ed5d5d59eab69c5619272525aefaa322cc2ca8b8541')
+
+pkgver() {
+ cd libretro-ppsspp
+
+ git rev-list --count HEAD
+}
+
+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#*/}
+ git submodule update ${submodule}
+ done
+ for submodule in ext/{armips,rapidjson,SPIRV-Cross}; do
+ git submodule init ${submodule}
+ git config submodule.${submodule}.url ../${submodule#*/}
+ git submodule update ${submodule}
+ done
+
+ cd ext/armips
+
+ for submodule in ext/tinyformat; do
+ git submodule init ${submodule}
+ git config submodule.${submodule}.url ../../../armips-${submodule#*/}
+ git submodule update ${submodule}
+ done
+}
+
+build() {
+ cmake -S libretro-ppsspp -B build -G Ninja \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DOpenGL_GL_PREFERENCE=GLVND \
+ -DHEADLESS=OFF \
+ -DLIBRETRO=ON \
+ -DMOBILE_DEVICE=OFF \
+ -DSIMULATOR=OFF \
+ -DUNITTEST=OFF \
+ -DUSE_SYSTEM_LIBZIP=ON \
+ -DUSE_SYSTEM_SNAPPY=ON \
+ -DUSE_SYSTEM_ZSTD=ON \
+ -DUSING_QT_UI=OFF \
+ -Wno-dev
+ cmake --build build
+}
+
+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/
+}
+
+# vim: ts=2 sw=2 et:
Copied: libretro-ppsspp/repos/community-staging-x86_64/libretro-ppsspp-assets-path.patch (from rev 1142605, libretro-ppsspp/trunk/libretro-ppsspp-assets-path.patch)
===================================================================
--- community-staging-x86_64/libretro-ppsspp-assets-path.patch (rev 0)
+++ community-staging-x86_64/libretro-ppsspp-assets-path.patch 2022-03-06 15:55:41 UTC (rev 1142607)
@@ -0,0 +1,12 @@
+diff '--color=auto' -rupN libretro-ppsspp.orig/libretro/libretro.cpp libretro-ppsspp/libretro/libretro.cpp
+--- libretro-ppsspp.orig/libretro/libretro.cpp 2021-10-01 16:59:56.706788890 +0200
++++ libretro-ppsspp/libretro/libretro.cpp 2021-10-01 17:02:51.683172829 +0200
+@@ -488,7 +488,7 @@ void retro_init(void)
+ g_Config.flash0Directory = retro_base_dir / "flash0";
+ g_Config.internalDataDirectory = retro_base_dir;
+
+- VFSRegister("", new DirectoryAssetReader(retro_base_dir));
++ VFSRegister("", new DirectoryAssetReader(Path("/usr/share/ppsspp/assets")));
+
+ host = new LibretroHost();
+ }
More information about the arch-commits
mailing list