1 # Contributor: Spooky Hunter <spookyh+arch@gmail.org>
6 pkgdesc="Multiple Arcade Machine Emulator."
8 url='http://x.mame.net'
10 depends=('expat>=2.0' 'sdl' 'zlib')
11 source=(http://www.franksworld.org/dist/xmame/xmame-${pkgver}.tar.bz2
13 md5sums=('b2b18d32a03ebd4d9c9476fbb93695ca' '8a847e2bd051a7a08736e4d5c24a1903')
16 cd ${startdir}/src/xmame-${pkgver}
20 patch -Np0 -i ${startdir}/src/makefile.unix.patch || return 1
21 [ -z "${CC}" ] || sed -i "s/CC\t= gcc/CC\t= ${CC}/" makefile.unix
22 sed -i "s/^CFLAGS =/CFLAGS = ${CFLAGS}/" makefile.unix
24 make PREFIX=/usr || return 1
25 make PREFIX=${startdir}/pkg/usr install
28 cd ${startdir}/pkg/usr/bin
31 chown -R root:root ${startdir}/pkg/usr