blob: 44e9fe29760923a1c39d030d5e03da8d2101bab4 (
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
|
# $Id: PKGBUILD 143013 2015-10-05 15:27:23Z foutrelis $
# Maintainer (Arch): Maxime Gauduin <alucryd@archlinux.org>
# Contributor (Arch): josephgbr <rafael.f.f1@gmail.com>
# Contributor (Arch): vEX <vex@niechift.com>
# Maintainer: Márcio Silva <coadde@parabola.nu>
pkgname=pcsx2
pkgver=1.3.1
pkgrel=5.parabola1
pkgdesc='A Sony PlayStation 2 emulator, without nonfree nvidia-cg-toolkit support'
arch=('i686' 'x86_64')
url='http://www.pcsx2.net'
license=('GPL2' 'GPL3' 'LGPL2.1' 'LGPL3')
depends_i686=('glew' 'libaio' 'libcanberra' 'libjpeg-turbo'
'portaudio' 'sdl' 'soundtouch' 'wxgtk')
depends_x86_64=('lib32-glew' 'lib32-libaio' 'lib32-libcanberra'
'lib32-libjpeg-turbo'
'lib32-portaudio' 'lib32-sdl' 'lib32-soundtouch' 'lib32-wxgtk')
makedepends=('cmake')
makedepends_x86_64=('gcc-multilib')
optdepends_x86_64=('lib32-gtk-engines: GTK2 engines support'
'lib32-gtk-engine-murrine: Murrine GTK3 engine support'
'lib32-gtk-engine-unico: Unico GTK2 engine support')
conflicts=("${pkgname}-libre")
replaces=("${pkgname}-libre")
options=('!emptydirs')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/PCSX2/${pkgname}/archive/v${pkgver}.tar.gz"
'0001-common-fix-gcc-5.0-issue.patch')
sha256sums=('60ba9f7f85bf4337ca6962f9b437d549f16fc04ea0b6b261d7521e0416c2b8c9'
'dc3bdfaea2e024da1d16dd6142030b13b3e2a4540ba1685399e3109d026866c4')
prepare() {
cd ${pkgname}-${pkgver}
# Remove zzogl and zerogs plugins (depends nonfree nvidia-cg-toolkit)
rm -vr plugins/{zerogs,zzogl-pg}
sed -i '\|zz_res =|,+4 d' linux_various/glsl2h.pl
# Fix startup crash with GCC 5.1
# https://github.com/PCSX2/pcsx2/issues/560
patch -Np1 -i ../0001-common-fix-gcc-5.0-issue.patch
}
build() {
cd ${pkgname}-${pkgver}
if [[ -d build ]]; then
rm -rf build
fi
mkdir build && cd build
if [[ $CARCH == i686 ]]; then
cmake .. \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_LIBRARY_PATH='/usr/lib' \
-DPLUGIN_DIR='/usr/lib/pcsx2' \
-DGAMEINDEX_DIR='/usr/share/pcsx2' \
-DDISABLE_ADVANCE_SIMD='TRUE' \
-DEXTRA_PLUGINS='TRUE' \
-DREBUILD_SHADER='TRUE' \
-DGLSL_API='TRUE' \
-DPACKAGE_MODE='TRUE' \
-DXDG_STD='TRUE'
elif [[ $CARCH == x86_64 ]]; then
cmake .. \
-DCMAKE_BUILD_TYPE='Release' \
-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' \
-DDISABLE_ADVANCE_SIMD='TRUE' \
-DEXTRA_PLUGINS='TRUE' \
-DREBUILD_SHADER='TRUE' \
-DGLSL_API='TRUE' \
-DPACKAGE_MODE='TRUE' \
-DXDG_STD='TRUE'
fi
make
}
package() {
cd ${pkgname}-${pkgver}/build
make DESTDIR="${pkgdir}" install
}
# vim: ts=2 sw=2 et:
|