blob: 9ae3853b70d1cf6be92d53ed1bb6e2eedb20459f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# 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.2243
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
options=(!lto)
depends=(
libaio
libjpeg-turbo
libpcap
libpulse
portaudio
libsamplerate
sdl2
soundtouch
wxgtk3
wayland
rapidyaml-git # only exists in the AUR
)
makedepends=(
cmake
git
xorgproto
ninja
swig
python
)
provides=(pcsx2)
conflicts=(pcsx2)
source=(git+https://github.com/PCSX2/pcsx2.git
git+https://github.com/fmtlib/fmt.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/Vulkan-Headers.git
git+https://github.com/KhronosGroup/glslang.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/rtissera/libchdr.git.url libchdr
git config submodule.https://github.com/google/googletest.git.url gtest
git config submodule.https://github.com/mozilla/cubeb.git.url cubeb
git config submodule.https://github.com/ocornut/imgui.git.url imgui
git config submodule.https://github.com/KhronosGroup/glslang.git glslang
git config submodule.https://github.com/KhronosGroup/Vulkan-Headers.git Vulkan-Headers
git submodule update
}
build()
{
mkdir -p build
cd build
cmake ../pcsx2 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_SYSTEM_YAML=TRUE \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
-DWAYLAND_API=ON \
-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'
'SKIP'
'SKIP'
'SKIP')
|