Created
August 7, 2016 12:16
-
-
Save tesfabpel/3030acc8faa54aacefe986adb4e6a7ec to your computer and use it in GitHub Desktop.
rpcs3 cereal fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Maxime Gauduin <alucryd@archlinux.org> | |
pkgname=rpcs3-git | |
pkgver=0.0.0.9.r262.b7eda71 | |
pkgrel=1 | |
pkgdesc='A Sony PlayStation 3 emulator' | |
arch=('x86_64') | |
url='https://github.com/DHrpcs3/rpcs3' | |
license=('GPL2') | |
depends=('boost-libs' 'gcc-libs' 'glew' 'glibc' 'libgl' 'libx11' 'openal' | |
'wxgtk' | |
'libavcodec.so' 'libavformat.so' 'libavutil.so' 'libswscale.so') | |
makedepends=('boost' 'cmake' 'git' 'yaml-cpp') | |
provides=('rpcs3') | |
conflicts=('rpcs3') | |
source=('git+https://github.com/RPCS3/rpcs3.git' | |
'git+https://github.com/RPCS3/common' | |
'git+https://github.com/RPCS3/pugixml' | |
'git+https://github.com/RPCS3/rsx_program_decompiler.git' | |
'git+https://github.com/RPCS3/rsx-debugger.git' | |
'git+https://github.com/kobalicek/asmjit.git#commit=b0dad1a' | |
'git+https://github.com/llvm-mirror/llvm.git#commit=051e787' | |
'git+https://github.com/Microsoft/GSL.git#commit=fc5fce4' | |
'git+https://github.com/KhronosGroup/glslang.git#commit=3c5b1e6' | |
'git+https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers.git#commit=1affe90' | |
'git+https://github.com/USCiLab/cereal.git#commit=42a45b6') | |
sha256sums=('SKIP' | |
'SKIP' | |
'SKIP' | |
'SKIP' | |
'SKIP' | |
'SKIP' | |
'SKIP' | |
'SKIP' | |
'SKIP' | |
'SKIP' | |
'SKIP') | |
pkgver() { | |
cd rpcs3 | |
echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')" | |
} | |
prepare() { | |
cd rsx_program_decompiler | |
git submodule init common | |
git config submodule.common.url ../common | |
git submodule update common | |
cd ../rpcs3 | |
git submodule init 3rdparty/{GSL,pugixml,cereal} asmjit rsx-debugger rsx_program_decompiler llvm Vulkan/{glslang,Vulkan-LoaderAndValidationLayers} | |
git config submodule.asmjit.url ../asmjit | |
git config submodule.GSL.url ../GSL | |
git config submodule.pugixml.url ../pugixml | |
git config submodule.rsx_program_decompiler.url ../rsx_program_decompiler | |
git config submodule.rsx-debugger.url ../rsx-debugger | |
git config submodule.llvm.url ../llvm | |
git config submodule.glslang.url ../glslang | |
git config submodule.Vulkan-LoaderAndValidationLayers.url ../Vulkan-LoaderAndValidationLayers | |
git config submodule.cereal.url ../cereal | |
git submodule update 3rdparty/{GSL,pugixml,cereal} asmjit rsx-debugger rsx_program_decompiler llvm Vulkan/{glslang,Vulkan-LoaderAndValidationLayers} | |
if [[ -d build ]]; then | |
rm -rf build | |
fi | |
mkdir build | |
} | |
build() { | |
cd rpcs3/build | |
cmake .. \ | |
-DCMAKE_BUILD_TYPE='Release' \ | |
-DCMAKE_INSTALL_PREFIX='/usr' \ | |
-DCMAKE_SKIP_RPATH='ON' \ | |
-DUSE_SYSTEM_LIBPNG='ON' \ | |
-DUSE_SYSTEM_FFMPEG='ON' | |
make | |
} | |
package() { | |
cd rpcs3/build | |
install -dm 755 "${pkgdir}"/usr/bin | |
install -m 755 bin/rpcs3 "${pkgdir}"/usr/bin/ | |
} | |
# vim: ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment