# Maintainer: rafaelff , WeirdBeard # Contributor: Maxime Gauduin # Contributor: Themaister pkgname=pcsx2-git pkgver=1.7.2774 pkgrel=1 pkgdesc='A Sony PlayStation 2 emulator' arch=(x86_64) url=https://www.pcsx2.net license=( GPL2 GPL3 LGPL2.1 LGPL3 ) install=dev9.install depends=( libaio libjpeg-turbo libpcap libzip libgl # For Steam Deck xorg-xrandr # For Steam Deck libxrender # For Steam Deck linux-api-headers # For Steam Deck libpulse portaudio libsamplerate sdl2 qt6-base qt6-wayland qt6-tools fmt soundtouch wayland rapidyaml zstd-cmake # AUR Package ) makedepends=( cmake git xorgproto ninja swig python vulkan-headers ) provides=(pcsx2-qt) conflicts=(pcsx2) source=( git+https://github.com/PCSX2/pcsx2.git git+https://github.com/ocornut/imgui.git git+https://github.com/rtissera/libchdr.git git+https://github.com/google/googletest.git git+https://github.com/mozilla/cubeb.git git+https://github.com/KhronosGroup/glslang.git git+https://github.com/KhronosGroup/Vulkan-Headers.git ) sha256sums=(SKIP) pkgver() { cd pcsx2 git describe --tags | sed 's/^v//; s/-dev//; s/-/.r/; s/-g/./' } prepare() { cd $srcdir/pcsx2 git submodule init git config submodule.3rdparty/libchdr/libchdr.url $srcdir/libchdr git config submodule.3rdparty/gtest.url $srcdir/googletest git config submodule.3rdparty/cubeb/cubeb.url $srcdir/cubeb git config submodule.3rdparty/imgui/imgui.url $srcdir/imgui git config submodule.3rdparty/glslang/glslang.url $srcdir/glslang git config submodule.3rdparty/vulkan-headers.url $srcdir/Vulkan-Headers git submodule update 3rdparty/libchdr/libchdr 3rdparty/gtest 3rdparty/cubeb/cubeb 3rdparty/imgui 3rdparty/glslang/glslang 3rdparty/vulkan-headers } build() { mkdir -p build cd build ls -l $srcdir/pcsx2/3rdparty/ cmake ../pcsx2 \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \ -DWAYLAND_API=ON \ -DXDG_STD=TRUE \ -USE_VULKAN=ON \ -DQT_BUILD=ON \ -DUSE_SYSTEM_LIBS=ON \ -GNinja \ -DPACKAGE_MODE=ON \ -DDISABLE_SETCAP=ON ninja -j$(nproc) } package() { DESTDIR="${pkgdir}" cmake --install build } # vim: ts=2 sw=2 et: sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')