blob: 2d195411bc14d80c93f0f4ccd33c8dc538efb56a (
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: LaserEyess <lasereyess@lasereyess.net>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: josephgbr <rafael.f.f1@gmail.com>
# Contributor: vEX <vex@niechift.com>
pkgname=pcsx2-64bit-git
pkgver=1.7.0.r1167.048356a39
pkgrel=1
pkgdesc='A Sony PlayStation 2 emulator, 64bit git master'
arch=(x86_64)
url=https://www.pcsx2.net
license=(
GPL2
GPL3
LGPL2.1
LGPL3
)
depends=(
gdk-pixbuf2
glibc
libaio
libasound.so
libfmt.so
libfreetype.so
libgdk-3.so
libgio-2.0.so
libgl
libGLEW.so
libglib-2.0.so
libgobject-2.0.so
libgtk-3.so
libpcap
libpng
libportaudio.so
libpulse.so
libudev.so
libx11
libxcb
libxml2
sdl2
soundtouch
wxgtk3
wxgtk-common
xz
zlib
)
makedepends=(
cmake
git
ninja
png++
)
provides=(pxsx2)
conflicts=(pcsx2)
source=(
git+https://github.com/PCSX2/pcsx2.git
git+https://github.com/rtissera/libchdr.git
git+https://github.com/jbeder/yaml-cpp.git
)
b2sums=(
SKIP
SKIP
SKIP
)
prepare() {
cd pcsx2/3rdparty
for submodule in libchdr/libchdr yaml-cpp/yaml-cpp; do
git submodule init ${submodule}
git config submodule.${submodule}.url ../../${submodule#*/}
git submodule update ${submodule}
done
}
pkgver() {
cd pcsx2
git describe --tags | sed 's/^v//; s/-dev//; s/-/.r/; s/-g/./'
}
build() {
cmake -S pcsx2 -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DDISABLE_ADVANCE_SIMD=ON \
-DDISABLE_BUILD_DATE=ON \
-DDISABLE_PCSX2_WRAPPER=ON \
-DENABLE_TESTS=OFF \
-DEXTRA_PLUGINS=ON \
-DSDL2_API=ON \
-DPACKAGE_MODE=ON \
-DREBUILD_SHADER=ON \
-DUSE_LTO=OFF \
-DUSE_SYSTEM_YAML=ON \
-DUSE_VTUNE=OFF \
-DXDG_STD=ON \
-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3 \
-Wno-dev
ninja -C build
}
package() {
DESTDIR="${pkgdir}" ninja -C build install
}
# vim: ts=2 sw=2 et:
|