summaryrefslogtreecommitdiff
path: root/libre-multilib/pcsx2
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-02 19:41:33 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-02 19:41:33 -0300
commit4cbcea3c1078e754ad555410d2fad0d3ed0e3bd3 (patch)
tree33e9153eae545d4cc9971211d14a232341423649 /libre-multilib/pcsx2
parentfae3599baca9298cbd8aaf2edf1978977801645e (diff)
pcsx2: remove libre suffix and add complex pkgrel
Diffstat (limited to 'libre-multilib/pcsx2')
-rw-r--r--libre-multilib/pcsx2/PKGBUILD61
1 files changed, 61 insertions, 0 deletions
diff --git a/libre-multilib/pcsx2/PKGBUILD b/libre-multilib/pcsx2/PKGBUILD
new file mode 100644
index 000000000..462310975
--- /dev/null
+++ b/libre-multilib/pcsx2/PKGBUILD
@@ -0,0 +1,61 @@
+# $Id: PKGBUILD 117536 2014-08-18 21:27:02Z alucryd $
+# Maintainer (Arch): Maxime Gauduin <alucryd@gmail.com>
+# Contributor (Arch): josephgbr <rafael.f.f1@gmail.com>
+# Contributor (Arch): vEX <vex@niechift.com>
+
+pkgname=pcsx2
+pkgver=1.2.2
+pkgrel=3.parabola1
+pkgdesc='A Sony PlayStation 2 emulator, without nonfree nvidia-cg-toolkit support'
+arch=('i686' 'x86_64' 'mips64el')
+url='http://www.pcsx2.net'
+license=('GPL2' 'GPL3' 'LGPL2.1' 'LGPL3')
+makedepends=('cmake' 'sparsehash')
+if [[ $CARCH == "i686" ]]; then
+ depends=('glew' 'libaio' 'libcanberra' 'libjpeg-turbo' 'portaudio' 'soundtouch' 'wxgtk2.8')
+elif [[ $CARCH == "x86_64" ]]; then
+ makedepends+=('gcc-multilib' 'lib32-glew' 'lib32-libaio' 'lib32-libcanberra' 'lib32-libjpeg-turbo' 'lib32-libgl' 'lib32-portaudio' 'lib32-soundtouch' 'lib32-wxgtk2.8')
+fi
+conflicts=("${pkgname}-libre")
+replaces=("${pkgname}-libre")
+options=('!emptydirs')
+source=("https://github.com/PCSX2/pcsx2/archive/v${pkgver}.tar.gz")
+sha256sums=('4fccef58098d099ffe955fadd5ceee78ed063ab585b8772f4242fd6dc5fd2d23')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ # remove Cg shader on ZZogl plugin
+ sed -i '\|zzogl-pg-cg| s|^|#|' plugins/CMakeLists.txt
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+
+ if [[ -d build ]]; then
+ rm -rf build
+ fi
+ mkdir build && cd build
+
+ if [[ $CARCH == "i686" ]]; then
+ cmake .. -DCMAKE_INSTALL_PREFIX='/usr' -DCMAKE_BUILD_TYPE='Release' -D{GLSL_API,PACKAGE_MODE,REBUILD_SHADER,XDG_STD}='ON' -DPLUGIN_DIR='/usr/lib/pcsx2' -DGAMEINDEX_DIR='/usr/share/pcsx2' -DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config-2.8' -DwxWidgets_wxrc_EXECUTABLE='/usr/bin/wxrc-2.8'
+ elif [[ $CARCH == "x86_64" ]]; then
+ export CC='gcc -m32'
+ export CXX='g++ -m32'
+ export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+ cmake .. -DCMAKE_INSTALL_PREFIX='/usr' -DCMAKE_BUILD_TYPE='Release' -D{GLSL_API,PACKAGE_MODE,REBUILD_SHADER,XDG_STD}='ON' -DPLUGIN_DIR='/usr/lib32/pcsx2' -DGAMEINDEX_DIR='/usr/share/pcsx2' -DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config32-2.8' -DwxWidgets_wxrc_EXECUTABLE='/usr/bin/wxrc32-2.8' -DCMAKE_LIBRARY_PATH='/usr/lib32'
+ fi
+
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}/build
+
+ if [[ $CARCH == "x86_64" ]]; then
+ depends=('lib32-glew' 'lib32-libaio' 'lib32-libcanberra' 'lib32-libjpeg-turbo' 'lib32-portaudio' 'lib32-soundtouch' 'lib32-wxgtk2.8')
+ fi
+
+ make DESTDIR="${pkgdir}" install
+}
+
+# vim: ts=2 sw=2 et: