summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af69cc2cee3f0f705e6119d3eab7400af404affb (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
# Contributor: schuay <jakob.gruber@gmail.com>
# Contributor: quantax -- contact via Arch Linux forum or AUR
# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>

pkgname=lib32-pcsxr
pkgver=1.9.93
pkgrel=5
pkgdesc='A Sony PlayStation (PSX) emulator based on the PCSX-df project (lib32)'
arch=('x86_64')
url='http://pcsxr.codeplex.com/'
license=('GPL')
depends=('lib32-libcdio' 'lib32-libxv' 'lib32-sdl' 'lib32-gtk3')
makedepends=('lib32-mesa')
optdepends=('lib32-libpulse: Pulseaudio support'
            'lib32-alsa-plugins: ALSA support')
provides=("pcsxr")
conflicts=("pcsxr" "pcsxr-git")

# Accessible through /srv/ftp/other/community on nymeria.
source=("https://sources.archlinux.org/other/community/pcsxr/pcsxr-${pkgver}.tar.bz2")

prepare() {
    cd "$srcdir/pcsxr"
    sed -i 's/uncompress2/uncompress2_internal/' libpcsxcore/cdriso.c
}

build() {
    cd "$srcdir/pcsxr"

    export CC="gcc"
    export CXX="g++"
    export CFLAGS+=" -m32 -I/usr/include/harfbuzz"
    export CXXFLAGS+=" -m32 -I/usr/include/harfbuzz"
    export LDFLAGS+=" -m32"
    export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'

    autoreconf -f -i
    intltoolize --force

    ./configure --prefix=/usr \
        --libdir=/usr/lib32 \
        --enable-dynarec=x86 \
        --enable-libcdio \
        --enable-opengl
    make
}

package() {
    cd "$srcdir/pcsxr"
    make DESTDIR="$pkgdir" install
}

md5sums=('d75725b4c3fcb2cb11d39b3ace10dc31')