Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 10th, 2010  |  syntax: None  |  size: 1.20 KB  |  views: 182  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: robb_force <robb_force@holybuffalo.net>
  2. # Editied by fana-m
  3.  
  4. pkgname=raine
  5. pkgver=0.51.8
  6. pkgrel=1
  7. pkgdesc="A multiple arcade emulator mainly focused on Taito and Jaleco games."
  8. url="http://rainemu.swishparty.co.uk/"
  9. license=('unknown')
  10. arch=('i686')
  11. depends=('sdl_ttf' 'sdl_image' 'muparser')
  12. makedepends=('nasm')
  13. source=(http://rainemu.swishparty.co.uk/html/archive/${pkgname}s-${pkgver}.tar.bz2 \
  14.   raine.sh)
  15. install=raine.install
  16. md5sums=('bcaf2313c853fd4a826771dfa0a38ca5'
  17.          'edf8de56509e6176b5b5feb25b2c13f0')
  18.  
  19. build()
  20. {
  21.   cd ${startdir}/src/${pkgname}-${pkgver}
  22.  
  23.   # The makefile seems to have the cpu detection out of sequence, so
  24.   # do it first.
  25.   sh ./detect-cpu
  26.  
  27.   # Fix share directory for Arch and install the binary to /usr/share/raine
  28.   sed -e 's/\$(prefix)\/games/\$(prefix)\/bin/' \
  29.     -e 's|/share/games|/share|' \
  30.     -e 's|/usr/bin/install|/bin/install|' \
  31.     -e 's|$(RAINE_EXE) $(bindir)|$(RAINE_EXE) $(rainedata)|' \
  32.     -i makefile
  33.   make || return 1
  34.   make DESTDIR=${startdir}/pkg install
  35.  
  36.   # Install the raine script to get around problems finding the fonts
  37.   cd ${startdir}/src
  38.   install -m755 raine.sh ${startdir}/pkg/usr/bin/${pkgname}
  39. }
clone this paste RAW Paste Data