[arch-commits] Commit in ppsspp/repos (5 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Sun Mar 6 15:39:41 UTC 2022


    Date: Sunday, March 6, 2022 @ 15:39:41
  Author: foutrelis
Revision: 1142454

archrelease: copy trunk to community-staging-x86_64

Added:
  ppsspp/repos/community-staging-x86_64/
  ppsspp/repos/community-staging-x86_64/PKGBUILD
    (from rev 1142453, ppsspp/trunk/PKGBUILD)
  ppsspp/repos/community-staging-x86_64/ppsspp-qt.desktop
    (from rev 1142453, ppsspp/trunk/ppsspp-qt.desktop)
  ppsspp/repos/community-staging-x86_64/ppsspp-sdl.desktop
    (from rev 1142453, ppsspp/trunk/ppsspp-sdl.desktop)
  ppsspp/repos/community-staging-x86_64/ppsspp-system-zstd.patch
    (from rev 1142453, ppsspp/trunk/ppsspp-system-zstd.patch)

--------------------------+
 PKGBUILD                 |  151 +++++++++++++++++++++++++++++++++++++++++++++
 ppsspp-qt.desktop        |    9 ++
 ppsspp-sdl.desktop       |    9 ++
 ppsspp-system-zstd.patch |   42 ++++++++++++
 4 files changed, 211 insertions(+)

Copied: ppsspp/repos/community-staging-x86_64/PKGBUILD (from rev 1142453, ppsspp/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-03-06 15:39:41 UTC (rev 1142454)
@@ -0,0 +1,151 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Ben Reedy <thebenj88 at gmail.com>
+# Contributor: Clement Guerin <geecko.dev at free.fr>
+# Contributor: Thiago Kenji Okada <thiago.mast3r at gmail.com>
+
+pkgbase=ppsspp
+pkgname=(
+  ppsspp
+  ppsspp-assets
+)
+pkgver=1.12.3
+pkgrel=2
+pkgdesc='A PSP emulator written in C++'
+arch=(x86_64)
+url=https://www.ppsspp.org/
+license=(GPL2)
+makedepends=(
+  clang
+  cmake
+  git
+  glew
+  libglvnd
+  libzip
+  ninja
+  python
+  qt5-base
+  qt5-multimedia
+  qt5-tools
+  sdl2
+  snappy
+  zlib
+)
+_tag=5310e411b4856949344020ebfcc5c6d3f22a6ff7
+source=(
+  git+https://github.com/hrydgard/ppsspp.git#tag=${_tag}
+  git+https://github.com/Kingcom/armips.git
+  git+https://github.com/discordapp/discord-rpc.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
+  ppsspp-sdl.desktop
+  ppsspp-qt.desktop
+  ppsspp-system-zstd.patch
+)
+b2sums=('SKIP'
+        'SKIP'
+        'SKIP'
+        'SKIP'
+        'SKIP'
+        'SKIP'
+        'SKIP'
+        'SKIP'
+        'SKIP'
+        'SKIP'
+        'c6bcdfedee866dfdcc82a8c333c31ff73ed0beec65b63acec8bc8186383c0bc9f0912f21bb9715b665e8dc1793b1a85599761f9037856fa54ad8aa3bfdbfd468'
+        '328e2ba47b78d242b0ec6ba6bfa039c77a36d1ef7246e5c2c2432d8e976e9360baf505eb05f48408ede1a30545cbbb7f875bf5ebd0252cef35523d449b8254a0'
+        'c9fefb1456341f8bdc66ff787dd45e849c44a927dea7d9453ae507ed8d03e440651afe5795f929995a4e55a3b44ffb19fc1105b5621ec4917c8d17250dda1259')
+
+pkgver() {
+  cd ppsspp
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd ppsspp
+
+  patch -Np1 -i ../ppsspp-system-zstd.patch
+
+  for submodule in assets/lang ext/{glslang,miniupnp} ffmpeg; do
+    git submodule init ${submodule}
+    git config submodule.${submodule}.url ../ppsspp-${submodule#*/}
+    git submodule update ${submodule}
+  done
+
+  for submodule in ext/{armips,discord-rpc,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() {
+  export CC=clang
+  export CXX=clang++
+  cmake -S ppsspp -B build-sdl -G Ninja \
+    -DCMAKE_BUILD_TYPE=None \
+    -DCMAKE_SKIP_RPATH=ON \
+    -DHEADLESS=ON \
+    -DOpenGL_GL_PREFERENCE=GLVND \
+    -DUSE_SYSTEM_LIBZIP=ON \
+    -DUSE_SYSTEM_SNAPPY=ON \
+    -DUSE_SYSTEM_ZSTD=ON \
+    -DUSING_QT_UI=OFF
+  cmake --build build-sdl
+  cmake -S ppsspp -B build-qt -G Ninja \
+    -DCMAKE_BUILD_TYPE=None \
+    -DCMAKE_SKIP_RPATH=ON \
+    -DHEADLESS=OFF \
+    -DOpenGL_GL_PREFERENCE=GLVND \
+    -DUSE_SYSTEM_LIBZIP=ON \
+    -DUSE_SYSTEM_SNAPPY=ON \
+    -DUSE_SYSTEM_ZSTD=ON \
+    -DUSING_QT_UI=ON
+  cmake --build build-qt
+}
+
+package_ppsspp() {
+  depends=(
+    glew
+    glibc
+    hicolor-icon-theme
+    libgl
+    libzip
+    ppsspp-assets
+    qt5-base
+    qt5-multimedia
+    sdl2
+    snappy
+    zlib
+    zstd
+  )
+
+  install -Dm 755 build-sdl/PPSSPPSDL -t "${pkgdir}"/usr/bin/
+  install -Dm 755 build-sdl/PPSSPPHeadless -t "${pkgdir}"/usr/bin/
+  install -Dm 755 build-qt/PPSSPPQt -t "${pkgdir}"/usr/bin/
+  install -dm 755 "${pkgdir}"/usr/share/icons
+  cp -dr --no-preserve=ownership ppsspp/icons/hicolor "${pkgdir}"/usr/share/icons/
+  install -Dm 644 ppsspp/icons/icon-512.svg "${pkgdir}"/usr/share/pixmaps/ppsspp.svg
+  install -Dm 644 ppsspp-sdl.desktop -t "${pkgdir}"/usr/share/applications/
+  install -Dm 644 ppsspp-qt.desktop -t "${pkgdir}"/usr/share/applications/
+}
+
+package_ppsspp-assets() {
+  install -dm 755 "${pkgdir}"/usr/share/ppsspp
+  cp -dr --no-preserve=ownership build-sdl/assets "${pkgdir}"/usr/share/ppsspp/
+}
+
+# vim: ts=2 sw=2 et:

Copied: ppsspp/repos/community-staging-x86_64/ppsspp-qt.desktop (from rev 1142453, ppsspp/trunk/ppsspp-qt.desktop)
===================================================================
--- community-staging-x86_64/ppsspp-qt.desktop	                        (rev 0)
+++ community-staging-x86_64/ppsspp-qt.desktop	2022-03-06 15:39:41 UTC (rev 1142454)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=PPSSPP (Qt)
+GenericName=PSP Emulator
+Comment=PlayStation Portable Simulator Suitable for Playing Portably
+Exec=PPSSPPQt %f
+Icon=ppsspp
+Categories=Game

Copied: ppsspp/repos/community-staging-x86_64/ppsspp-sdl.desktop (from rev 1142453, ppsspp/trunk/ppsspp-sdl.desktop)
===================================================================
--- community-staging-x86_64/ppsspp-sdl.desktop	                        (rev 0)
+++ community-staging-x86_64/ppsspp-sdl.desktop	2022-03-06 15:39:41 UTC (rev 1142454)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=PPSSPP (SDL)
+GenericName=PSP Emulator
+Comment=PlayStation Portable Simulator Suitable for Playing Portably
+Exec=PPSSPPSDL %f
+Icon=ppsspp
+Categories=Game

Copied: ppsspp/repos/community-staging-x86_64/ppsspp-system-zstd.patch (from rev 1142453, ppsspp/trunk/ppsspp-system-zstd.patch)
===================================================================
--- community-staging-x86_64/ppsspp-system-zstd.patch	                        (rev 0)
+++ community-staging-x86_64/ppsspp-system-zstd.patch	2022-03-06 15:39:41 UTC (rev 1142454)
@@ -0,0 +1,42 @@
+diff '--color=auto' -rupN libretro-ppsspp.orig/CMakeLists.txt libretro-ppsspp/CMakeLists.txt
+--- libretro-ppsspp.orig/CMakeLists.txt	2021-10-01 17:28:30.046655852 +0200
++++ libretro-ppsspp/CMakeLists.txt	2021-10-01 17:30:38.698699237 +0200
+@@ -151,6 +151,7 @@ option(USE_MINIUPNPC "Build with miniUPn
+ option(USE_SYSTEM_SNAPPY "Dynamically link against system snappy" ${USE_SYSTEM_SNAPPY})
+ option(USE_SYSTEM_FFMPEG "Dynamically link against system FFMPEG" ${USE_SYSTEM_FFMPEG})
+ option(USE_SYSTEM_LIBZIP "Dynamically link against system libzip" ${USE_SYSTEM_LIBZIP})
++option(USE_SYSTEM_ZSTD "Dynamically link against system zstd" ${USE_SYSTEM_ZSTD})
+ option(USE_SYSTEM_LIBSDL2 "Dynamically link against system SDL2" ON)
+ option(USE_SYSTEM_LIBPNG "Dynamically link against system libpng" ON)
+ option(USE_ASAN "Use address sanitizer" OFF)
+@@ -1976,8 +1977,20 @@ if(ANDROID)
+ 	endif()
+ endif()
+ 
+-set(CoreExtraLibs ${CoreExtraLibs} armips libzstd_static)
+-include_directories(ext/zstd/lib)
++set(CoreExtraLibs ${CoreExtraLibs} armips)
++
++find_package(PkgConfig)
++if(PKG_CONFIG_FOUND)
++	pkg_check_modules(ZSTD libzstd)
++endif()
++if(ZSTD_FOUND AND USE_SYSTEM_ZSTD)
++	include_directories(${ZSTD_INCLUDE_DIRS})
++	target_link_libraries(${CoreLibName} ${ZSTD_LIBRARIES})
++else()
++	add_subdirectory(ext/zstd/build/cmake EXCLUDE_FROM_ALL)
++	include_directories(ext/zstd/lib)
++	set(CoreExtraLibs ${CoreExtraLibs} libzstd_static)
++endif()
+ 
+ # needed for VK_USE_PLATFORM_XCB_KHR only
+ #if(VULKAN AND NOT WIN32)
+diff '--color=auto' -rupN libretro-ppsspp.orig/ext/CMakeLists.txt libretro-ppsspp/ext/CMakeLists.txt
+--- libretro-ppsspp.orig/ext/CMakeLists.txt	2021-10-01 17:28:30.136664237 +0200
++++ libretro-ppsspp/ext/CMakeLists.txt	2021-10-01 17:30:45.282654341 +0200
+@@ -22,4 +22,3 @@ add_subdirectory(SPIRV-Cross-build)
+ if(USE_DISCORD AND NOT IOS AND NOT LIBRETRO)
+ 	add_subdirectory(discord-rpc-build)
+ endif()
+-add_subdirectory(zstd/build/cmake EXCLUDE_FROM_ALL)



More information about the arch-commits mailing list