blob: 81c8cddb3f8dabd50d1d433590d3833564bea34e (
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
|
# Maintainer: Pellegrino Prevete <cGVsbGVncmlub3ByZXZldGVAZ21haWwuY29tCg== | base -d>
# Contributor: Özgür Sarıer <echo b3pndXJzYXJpZXIxMDExNjAxMTE1QGdtYWlsLmNvbQo= | base64 -d>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Infy <eugene.yudin@gmail.com>
# Contributor: hlechner <hlechner@gmail.com>
pkgname=pcsxr-git
pkgver=1.9.94.r1697.6484236c
pkgrel=2
pkgdesc='A Sony PlayStation emulator based on the PCSX-df Project'
arch=('i686' 'x86_64')
url='https://github.com/pcsxr/PCSX-Reloaded/tree/master/pcsxr'
license=('GPL')
depends=('ffmpeg' 'gdk-pixbuf2' 'glib2' 'glibc' 'gtk3' 'libarchive' 'libcdio'
'libgl' 'libpulse' 'libx11' 'libxext' 'libxtst' 'libxv' 'libxxf86vm'
'sdl2' 'zlib')
makedepends=('cmake' 'git' 'intltool' 'mesa')
[[ $CARCH == i686 ]] && makedepends+=('nasm')
provides=('pcsxr')
conflicts=('pcsxr' 'pcsx-df')
replaces=('pcsxr-svn')
source=('pcsxr::git+https://github.com/pcsxr/PCSX-Reloaded.git')
sha256sums=('SKIP')
pkgver() {
cd pcsxr
echo "1.9.94.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
prepare() {
cd pcsxr/pcsxr
sed -i 's/iso9660/cdio/' cmake/FindCdio.cmake
if [[ -d build ]]; then
rm -rf build
fi
mkdir build
}
build() {
cd pcsxr/pcsxr/build
CFLAGS="$CFLAGS -fcommon" cmake .. \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_INSTALL_LIBDIR='/usr/lib' \
-DSND_BACKEND='pulse' \
-DENABLE_CCDDA='ON' \
-DUSE_LIBARCHIVE='ON' \
-DUSE_LIBCDIO='ON' \
-DCMAKE_C_FLAGS_RELEASE:STRING="-O2 -DNDEBUG -mtune=native -pipe -I/usr/include/harfbuzz/ -lGLU -lGL " \
-DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2 -DNDEBUG -mtune=native -pipe -I/usr/include/harfbuzz/ -lGLU -lGL " \
-DOpenGL_GL_PREFERENCE:STRING="GLVND"
make
}
package() {
cd pcsxr/pcsxr/build
make DESTDIR="${pkgdir}" install
}
# vim: ts=2 sw=2 et:
|