From f2636704889dae40e9634aba3dfcce86a690f0b2 Mon Sep 17 00:00:00 2001 From: zxp19821005 Date: Fri, 7 Nov 2025 16:17:40 +0800 Subject: [PATCH] update to 0.12.5 --- .SRCINFO | 20 +++++--------------- PKGBUILD | 27 +++++++++------------------ shadps4.sh | 8 -------- 3 files changed, 14 insertions(+), 41 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 3e6a9ce55aa6..48b13a0972d8 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,25 +1,15 @@ pkgbase = shadps4-bin pkgdesc = Sony PlayStation 4 emulator.(Prebuilt version) - pkgver = 0.12.0 + pkgver = 0.12.5 pkgrel = 1 url = https://shadps4.net/ arch = x86_64 license = GPL-2.0-only - depends = libice - depends = gmp - depends = libgpg-error - depends = mesa - depends = harfbuzz - depends = libsm - depends = libglvnd - depends = fribidi - depends = libdrm - depends = fontconfig - provides = shadps4=0.12.0 + provides = shadps4=0.12.5 conflicts = shadps4 - source = shadps4-0.12.0.zip::https://github.com/shadps4-emu/shadPS4/releases/download/v.0.12.0/shadps4-linux-qt-0.12.0.zip + source = shadps4-0.12.5.zip::https://github.com/shadps4-emu/shadPS4/releases/download/v.0.12.5/shadps4-linux-sdl-0.12.5.zip source = shadps4.sh - sha256sums = de587852c1dd601e9e63d512fc1885fa678474e2692d9ce39d30d43166b6c6a2 - sha256sums = bf28379cb0ba33a297560e1e50c2ae13504487be2e8ebb39b899f48b442886f0 + sha256sums = f7d7de431d50ad5cace6ac3e248f730f90e381597a9e198bda669cd2ce829f69 + sha256sums = c2668b966dc1f5fef271c64e1749cf136e26b42dd9f993f063c69900a191e323 pkgname = shadps4-bin diff --git a/PKGBUILD b/PKGBUILD index ddd9a06b0e31..13e3aea6b21b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: zxp19821005 pkgname=shadps4-bin _pkgname=shadPS4 -pkgver=0.12.0 +pkgver=0.12.5 pkgrel=1 pkgdesc="Sony PlayStation 4 emulator.(Prebuilt version)" arch=('x86_64') @@ -11,41 +11,32 @@ license=('GPL-2.0-only') provides=("${pkgname%-bin}=${pkgver}") conflicts=("${pkgname%-bin}") depends=( - 'libice' - 'gmp' - 'libgpg-error' - 'mesa' - 'harfbuzz' - 'libsm' - 'libglvnd' - 'fribidi' - 'libdrm' - 'fontconfig' + ) source=( - "${pkgname%-bin}-${pkgver}.zip::${_ghurl}/releases/download/v.${pkgver}/${pkgname%-bin}-linux-qt-${pkgver}.zip" + "${pkgname%-bin}-${pkgver}.zip::${_ghurl}/releases/download/v.${pkgver}/${pkgname%-bin}-linux-sdl-${pkgver}.zip" "${pkgname%-bin}.sh" ) -sha256sums=('de587852c1dd601e9e63d512fc1885fa678474e2692d9ce39d30d43166b6c6a2' - 'bf28379cb0ba33a297560e1e50c2ae13504487be2e8ebb39b899f48b442886f0') +sha256sums=('f7d7de431d50ad5cace6ac3e248f730f90e381597a9e198bda669cd2ce829f69' + 'c2668b966dc1f5fef271c64e1749cf136e26b42dd9f993f063c69900a191e323') prepare() { sed -i -e " s/@appname@/${pkgname%-bin}/g s/@runname@/${pkgname%-bin}/g " "${srcdir}/${pkgname%-bin}.sh" - if [ ! -x "${srcdir}/Shadps4-qt.AppImage" ];then - chmod +x "${srcdir}/Shadps4-qt.AppImage" + if [ ! -x "${srcdir}/Shadps4-sql.AppImage" ];then + chmod +x "${srcdir}/Shadps4-sdl.AppImage" fi if [ -d "${srcdir}/squashfs-root" ];then rm -rf "${srcdir}/squashfs-root" fi - "${srcdir}/Shadps4-qt.AppImage" --appimage-extract > /dev/null + "${srcdir}/Shadps4-sdl.AppImage" --appimage-extract > /dev/null sed -i "s/net.${pkgname%-bin}.${_pkgname}/${pkgname%-bin}/g" "${srcdir}/squashfs-root/usr/share/applications/net.${pkgname%-bin}.${_pkgname}.desktop" } package() { install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}" - cp -Pr --no-preserve=ownership "${srcdir}/squashfs-root/usr/"{bin,lib,optional,plugins,translations} "${pkgdir}/usr/lib/${pkgname%-bin}" + cp -Pr --no-preserve=ownership "${srcdir}/squashfs-root/usr/"{bin,lib,optional} "${pkgdir}/usr/lib/${pkgname%-bin}" install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/scalable/apps/net.${pkgname%-bin}.${_pkgname}.svg" \ "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname%-bin}.svg" install -Dm644 "${srcdir}/squashfs-root/usr/share/applications/net.${pkgname%-bin}.${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop" diff --git a/shadps4.sh b/shadps4.sh index fc29748ab0ef..d0282fd7ffc7 100644 --- a/shadps4.sh +++ b/shadps4.sh @@ -4,13 +4,5 @@ _APPDIR="/usr/lib/@appname@" _RUNNAME="${_APPDIR}/bin/@runname@" export PATH="${_APPDIR}:${PATH:-}" export LD_LIBRARY_PATH="${_APPDIR}/lib:${LD_LIBRARY_PATH:-}" -export QT_PLUGIN_PATH="${_APPDIR}/plugins:${QT_PLUGIN_PATH:-}" -export QML_IMPORT_PATH="${_APPDIR}/qml:${QML_IMPORT_PATH:-}" -export QML2_IMPORT_PATH="${_APPDIR}/qml:${QML2_IMPORT_PATH:-}" -case "${XDG_CURRENT_DESKTOP}" in - *GNOME*|*gnome*|*XFCE*) - export QT_QPA_PLATFORMTHEME=gtk2 - ;; -esac cd "${_APPDIR}" || { echo "Failed to change directory to ${_APPDIR}"; exit 1; } exec "${_RUNNAME}" "$@" || exit $? \ No newline at end of file