1 # Maintainer: TryA <tryagainprod@gmail.com>
2 # Contributor: robb_force <robb_force@holybuffalo.net>
8 pkgdesc="A NeoGeo CD emulator based on Raine"
9 url="http://rainemu.swishparty.co.uk"
11 arch=('i686' 'x86_64')
12 if [ "${CARCH}" == "x86_64" ]; then
13 depends=('lib32-sdl_ttf' 'lib32-sdl_image' 'lib32-sdl_sound' 'lib32-muparser')
14 makedepends=('nasm' 'gcc-multilib')
16 depends=('sdl_ttf' 'sdl_image' 'sdl_sound' 'muparser')
19 source=("http://trya.alwaysdata.net/linux/raines-${_rainever}.tar.bz2")
20 md5sums=('a6305bfc5c699d3e75f7150c408882fd')
23 cd "${srcdir}/raine-${_rainever}"
25 # fix system directories in Makefile for the install target
26 sed -e 's|\$(prefix)\/games|\$(prefix)\/bin|' \
27 -e 's|INSTALL = @install|INSTALL = install|' \
28 -e 's|rainedata = $(sharedir)/raine|rainedata = $(sharedir)/neoraine|' \
31 # -O3 optimizations cause segfaults, use -O2 instead
32 sed -e 's|CFLAGS = -O3|CFLAGS = -O2|' -i makefile
34 # NeoRaine share path conflicts with Raine, define another directory
35 sed -e 's|"/usr/share/games/raine/"|"/usr/share/games/neoraine/"|' \
42 cd "${srcdir}/raine-${_rainever}"
43 make NEO=1 DESTDIR="${pkgdir}" install
45 # install fonts and bitmaps
46 install -m644 fonts/{Vera.ttf,VeraMono.ttf,font6x8.bin} "${pkgdir}/usr/share/games/${pkgname}/fonts"
47 install -m644 bitmaps/{cursor.png,raine_logo.png} "${pkgdir}/usr/share/games/${pkgname}/bitmaps"