Date: Tuesday, January 26, 2016 @ 13:24:19 Author: schuay Revision: 158951
pcsxr multilib Modified: pcsxr/trunk/PKGBUILD ----------+ PKGBUILD | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-01-26 12:22:39 UTC (rev 158950) +++ PKGBUILD 2016-01-26 12:24:19 UTC (rev 158951) @@ -5,15 +5,20 @@ pkgname=pcsxr pkgver=1.9.93 -pkgrel=4 +pkgrel=5 pkgdesc='A Sony PlayStation (PSX) emulator based on the PCSX-df project' arch=('i686' 'x86_64') url='http://pcsxr.codeplex.com/' license=('GPL') depends=('libcdio' 'libxv' 'sdl' 'gtk3') -makedepends=('mesa' 'intltool') -[[ $CARCH == 'i686' ]] && makedepends+=('nasm') +makedepends=('mesa' 'intltool' 'nasm') +options=('!libtool') +if [[ $CARCH == 'x86_64' ]]; then + makedepends+=('lib32-mesa') + depends+=('lib32-libcdio' 'lib32-libxv' 'lib32-sdl' 'lib32-gtk3') +fi + # Accessible through /srv/ftp/other/community on nymeria. source=("https://sources.archlinux.org/other/community/pcsxr/pcsxr-${pkgver}.tar.bz2") @@ -20,10 +25,19 @@ build() { cd "$srcdir/$pkgname" + if [[ $CARCH == 'x86_64' ]]; then + export CC="gcc -m32" + export CXX="g++ -m32" + fi + autoreconf -f -i intltoolize --force - ./configure --prefix=/usr --enable-libcdio --enable-opengl + ./configure --prefix=/usr \ + --libdir=/usr/lib32 \ + --enable-dynarec=x86 \ + --enable-libcdio \ + --enable-opengl make }