update to 0.12.5

This commit is contained in:
zxp19821005 2025-11-07 16:17:40 +08:00
parent 59f8961c8d
commit f263670488
3 changed files with 14 additions and 41 deletions

View file

@ -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

View file

@ -1,7 +1,7 @@
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
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"

View file

@ -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 $?