Skip to content

Instantly share code, notes, and snippets.

@rodrigo21
Created December 13, 2020 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodrigo21/b19e56743332fb8713979a6f49c21d3d to your computer and use it in GitHub Desktop.
Save rodrigo21/b19e56743332fb8713979a6f49c21d3d to your computer and use it in GitHub Desktop.
# Maintainer: rafaelff <rafaelff@gnome.org>, WeirdBeard <obarrtimothy@gmail.com>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Themaister <maister@archlinux.us>
pkgname=pcsx2-git
pkgver=1.7.0.r680.083380297
pkgrel=1
pkgdesc='A Sony PlayStation 2 emulator'
arch=(x86_64)
url=https://www.pcsx2.net
license=(
GPL2
GPL3
LGPL2.1
LGPL3
)
depends=(
fmt
libaio
libjpeg-turbo
libpcap
libpulse
libsamplerate
portaudio
sdl2
soundtouch
wxgtk3
)
makedepends=(
cmake
git
ninja
xorgproto
)
provides=(pcsx2)
conflicts=(pcsx2)
source=(git+https://github.com/PCSX2/pcsx2.git)
sha256sums=('SKIP')
pkgver() {
cd pcsx2
git describe --tags | sed 's/^v//; s/-dev//; s/-/.r/; s/-g/./'
}
prepare() {
cd pcsx2/3rdparty
git submodule update --init --recursive
}
build() {
cmake -G Ninja -B build -S pcsx2 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DDOC_DIR=/usr/share/doc/pcsx2 \
-DGAMEINDEX_DIR=/usr/share/pcsx2 \
-DPLUGIN_DIR=/usr/lib/pcsx2 \
-DDISABLE_BUILD_DATE=ON \
-DDISABLE_PCSX2_WRAPPER=ON \
-DEXTRA_PLUGINS=ON \
-DSDL2_API=ON \
-DPACKAGE_MODE=ON \
-DREBUILD_SHADER=ON \
-DUSE_LTO=ON \
-DUSE_VTUNE=OFF \
-DXDG_STD=ON \
-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3 \
-Wno-dev
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment