blob: b3f743e82c25ae2bb3843811bafe562701c21ce6 (
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
|
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: josephgbr <rafael.f.f1@gmail.com>
# Contributor: Themaister <maister@archlinux.us>
pkgname=pcsx2-git
pkgver=1.5.0.r3318.f2da7ece5
pkgrel=1
pkgdesc='A Sony PlayStation 2 emulator'
arch=(x86_64)
url=https://www.pcsx2.net
license=(
GPL2
GPL3
LGPL2.1
LGPL3
)
depends=(
lib32-glew
lib32-libaio
lib32-libcanberra
lib32-libjpeg-turbo
lib32-libpcap
lib32-libpulse
lib32-portaudio
lib32-sdl2
lib32-soundtouch
lib32-wxgtk2
)
makedepends=(
clang
cmake
git
lib32-libglvnd
png++
)
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() {
if [[ -d build ]]; then
rm -rf build
fi
mkdir build
# Disable ZeroGS and ZZOgl-PG
rm -rf pcsx2/plugins/{zerogs,zzogl-pg}
}
build() {
cd build
export CC=clang
export CXX=clang++
export CXXFLAGS="$CXXFLAGS -I/usr/include/harfbuzz"
cmake ../pcsx2 \
-DCMAKE_TOOLCHAIN_FILE=cmake/linux-compiler-i386-multilib.cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_LIBRARY_PATH=/usr/lib32 \
-DPLUGIN_DIR=/usr/lib32/pcsx2 \
-DGAMEINDEX_DIR=/usr/share/pcsx2 \
-DEXTRA_PLUGINS=ON \
-DREBUILD_SHADER=ON \
-DGLSL_API=ON \
-DPACKAGE_MODE=ON \
-DXDG_STD=ON
make
}
package() {
make DESTDIR="${pkgdir}" -C build install
}
# vim: ts=2 sw=2 et:
|