# Maintainer: rafaelff , WeirdBeard # Contributor: Maxime Gauduin # Contributor: Themaister pkgname=pcsx2-git pkgver=1.7.2077 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 libpulse portaudio libsamplerate sdl2 soundtouch wxgtk3 ) makedepends=( cmake git xorgproto ninja ) provides=(pcsx2) conflicts=(pcsx2) source=(git+https://github.com/PCSX2/pcsx2.git git+https://github.com/fmtlib/fmt.git git+https://github.com/jbeder/yaml-cpp.git git+https://github.com/rtissera/libchdr.git git+https://github.com/google/googletest.git) sha256sums=(SKIP) pkgver() { cd pcsx2 git describe --tags | sed 's/^v//; s/-dev//; s/-/.r/; s/-g/./' } prepare() { cd $srcdir/pcsx2/3rdparty git submodule init git config submodule.https://github.com/fmtlib/src/fmt.git.url fmt git config submodule.https://github.com/jbeder/yaml-cpp.git.url yaml-cpp git config submodule.https://github.com/rtissera/libchdr.git.url libchdr git config submodule.https://github.com/google/googletest.git.url gtest git submodule update } build() { mkdir -p build cd build cmake ../pcsx2 \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DPLUGIN_DIR=/usr/lib/pcsx2 \ -DGAMEINDEX_DIR=/usr/share/pcsx2 \ -GNinja \ -DPACKAGE_MODE=ON \ -DXDG_STD=TRUE \ -DDISABLE_SETCAP=ON ninja -j$(nproc) } package() { DESTDIR="${pkgdir}" cmake --install build } # vim: ts=2 sw=2 et: sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')