1 # Contributor: robb_force <robb_force@holybuffalo.net> and fana-m
7 pkgdesc="A multiple arcade emulator mainly focused on Taito and Jaleco games."
8 url="http://rainemu.swishparty.co.uk/html/download/latest.html"
11 depends=('sdl_ttf' 'sdl_image' 'muparser' 'sdl_sound')
14 #install=raine.install
15 md5sums=('c64f64ffbbcc732822ad1e540dde327a')
20 local dlfile=http://rainemu.swishparty.co.uk/html/archive/raines-${pkgver}.tar.bz2
21 local file=raines-${pkgver}.tar.bz2
22 if [[ ! -f "${startdir}/src/$file" ]]; then
24 wget "$dlfile" --referer="$url"
27 local md5=`md5sum $file | cut -d " " -f1`
28 if [ $md5 != 43e08bacbc5eea481d1304fb519dab37 ]; then
29 echo MD5 error on file $file
40 cd ${startdir}/src/raine-${pkgver}
42 # The makefile seems to have the cpu detection out of sequence, so
46 # Fix share directory for Arch and install the binary to /usr/share/raine
47 sed -e 's/\$(prefix)\/games/\$(prefix)\/bin/' \
48 -e 's|/share/games|/share|' \
49 -e 's|/usr/bin/install|/bin/install|' \
50 -e 's|$(RAINE_EXE) $(bindir)|$(RAINE_EXE) $(rainedata)|' \
51 -e 's|NEO=1|#NEO=1|' \
54 make DESTDIR=${startdir}/pkg install
56 # Install the raine script to get around problems finding the fonts
58 install -m755 raine.sh ${startdir}/pkg/usr/bin/raine