[arch-commits] Commit in libretro-pcsx2/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Sun Mar 6 15:31:44 UTC 2022


    Date: Sunday, March 6, 2022 @ 15:31:43
  Author: felixonmars
Revision: 1142382

archrelease: copy trunk to community-staging-x86_64

Added:
  libretro-pcsx2/repos/community-staging-x86_64/
  libretro-pcsx2/repos/community-staging-x86_64/PKGBUILD
    (from rev 1142381, libretro-pcsx2/trunk/PKGBUILD)

----------+
 PKGBUILD |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)

Copied: libretro-pcsx2/repos/community-staging-x86_64/PKGBUILD (from rev 1142381, libretro-pcsx2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-03-06 15:31:43 UTC (rev 1142382)
@@ -0,0 +1,67 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=libretro-pcsx2
+pkgver=11900
+pkgrel=2
+pkgdesc='Sony PlayStation 2 core'
+arch=(x86_64)
+url=https://github.com/libretro/pcsx2
+license=(
+  GPL2
+  GPL3
+  LGPL2.1
+  LGPL3
+)
+depends=(
+  gcc-libs
+  glibc
+  libaio
+  libgio-2.0.so
+  libglib-2.0.so
+  libglvnd
+  libudev.so
+  zlib
+)
+makedepends=(
+  cmake
+  git
+  ninja
+  png++
+  systemd
+)
+_commit=373fca4dc5fbcb71970f0fa4a7f4c5501eeb83ee
+source=(libretro-pcsx2::git+https://github.com/libretro/pcsx2.git#commit=${_commit})
+b2sums=(SKIP)
+
+pkgver() {
+  cd libretro-pcsx2
+
+  git rev-list --count HEAD
+}
+
+prepare() {
+  sed '/set(CMAKE_C_COMPILER_LAUNCHER ccache)/d; /set(CMAKE_CXX_COMPILER_LAUNCHER ccache)/d' -i libretro-pcsx2/CMakeLists.txt
+}
+
+build() {
+  #export LDFLAGS+=' -lgio-2.0'
+  cmake -S libretro-pcsx2 -B build -G Ninja \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DDISABLE_ADVANCE_SIMD=ON \
+    -DDISABLE_BUILD_DATE=ON \
+    -DENABLE_TESTS=OFF \
+    -DLIBRETRO=ON \
+    -DSDL2_API=ON \
+    -DREBUILD_SHADER=ON \
+    -DUSE_LTO=ON \
+    -DXDG_STD=ON \
+    -Wno-dev
+  ninja -C build
+}
+
+package() {
+  install -Dm 644 build/pcsx2/pcsx2_libretro.so -t "${pkgdir}"/usr/lib/libretro/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list