# Maintainer: Alexandre Bouvier _pkgname=libretro-pcsx2 pkgname=$_pkgname-git pkgver=r12192.57ffdd787 pkgrel=1 pkgdesc="Sony PlayStation 2 core" arch=('x86_64') url="https://github.com/libretro/pcsx2" license=('LGPL3') groups=('libretro') depends=('libaio' 'libgl' 'libretro-core-info') makedepends=('cmake' 'git' 'libglvnd' 'vim') provides=("$_pkgname") conflicts=("$_pkgname") source=("$_pkgname::git+$url.git") b2sums=('SKIP') pkgver() { cd $_pkgname printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { sed -i '/ ccache)$/d' $_pkgname/CMakeLists.txt } build() { cmake -S $_pkgname -B build \ -DARCH_FLAG="" \ -DCMAKE_BUILD_TYPE=Release \ -DDISABLE_ADVANCE_SIMD=ON \ -DLIBRETRO=ON \ -DOPTIMIZATION_FLAG="" \ -DUSE_LTO=OFF \ -Wno-dev cmake --build build } package() { # shellcheck disable=SC2154 install -Dm644 -t "$pkgdir"/usr/lib/libretro build/pcsx2/pcsx2_libretro.so }