# Maintainer: katt # Contributor: Sanpi pkgname=rpcs3 pkgver=0.0.12 pkgrel=1 pkgdesc='Open-source Sony PlayStation 3 Emulator' arch=(x86_64) url=https://rpcs3.net license=(GPL2) depends=(alsa-lib glew glu libavcodec.so libavutil.so libevdev libgl libice libncursesw.so libpng libpulse libsm libswscale.so libx11 libxext openal qt5-base qt5-declarative sdl2 vulkan-icd-loader zlib curl) makedepends=(cmake git libglvnd python vulkan-validation-layers) options=(!emptydirs) source=( git+https://github.com/RPCS3/rpcs3.git#tag=v${pkgver} rpcs3-cereal::git+https://github.com/RPCS3/cereal.git rpcs3-hidapi::git+https://github.com/RPCS3/hidapi rpcs3-llvm::git+https://github.com/RPCS3/llvm-mirror rpcs3-yaml-cpp::git+https://github.com/RPCS3/yaml-cpp.git git+https://github.com/Cyan4973/xxHash git+https://github.com/FNA-XNA/FAudio.git git+https://github.com/google/flatbuffers.git git+https://github.com/KhronosGroup/glslang.git git+https://github.com/KhronosGroup/SPIRV-Headers.git git+https://github.com/KhronosGroup/SPIRV-Tools.git git+https://github.com/kobalicek/asmjit git+https://github.com/libusb/libusb.git git+https://github.com/RipleyTom/wolfssl.git git+https://github.com/tcbrindle/span git+https://github.com/zeux/pugixml ) md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') prepare() { cd "$pkgname" git submodule init git config submodule."3rdparty/cereal".url ../rpcs3-cereal git config submodule."3rdparty/hidapi".url ../rpcs3-hidapi git config submodule."llvm".url ../rpcs3-llvm git config submodule."3rdparty/yaml-cpp".url ../rpcs3-yaml-cpp git config submodule."3rdparty/xxHash".url ../xxHash git config submodule."3rdparty/FAudio".url ../FAudio git config submodule."3rdparty/flatbuffers".url ../flatbuffers git config submodule."Vulkan/glslang".url ../glslang git config submodule."Vulkan/spirv-headers".url ../SPIRV-Headers git config submodule."Vulkan/spirv-tools".url ../SPIRV-Tools git config submodule."asmjit".url ../asmjit git config submodule."3rdparty/libusb".url ../libusb git config submodule."3rdparty/wolfssl".url ../wolfssl git config submodule."3rdparty/span".url ../span git config submodule."3rdparty/pugixml".url ../pugixml git submodule update } build() { cmake -S "$pkgname" -B build \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_SKIP_RPATH=ON \ -DUSE_NATIVE_INSTRUCTIONS=OFF \ -DUSE_SYSTEM_FFMPEG=ON \ -DUSE_SYSTEM_LIBPNG=ON \ -DUSE_SYSTEM_ZLIB=ON \ -DUSE_SYSTEM_CURL=ON cmake --build build } package() { DESTDIR="${pkgdir}" cmake --install build }