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

gngeo

By: a guest on Oct 7th, 2011  |  syntax: Bash  |  size: 1.41 KB  |  views: 95  |  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.  
  3. pkgname=gngeo
  4. pkgver=0.7
  5. pkgrel=1
  6. pkgdesc="A command-line NeoGeo Emulator."
  7. url="http://gngeo.berlios.de/"
  8. license="GPL"
  9. arch=('i686' 'x86_64')
  10.  
  11. if [ $CARCH == i686 ]; then
  12.   depends=('zlib' 'sdl')
  13.   makedepends=('nasm')
  14.   optdepends=('libgl: OpenGL support for open source gfx drivers'
  15.               'nvidia-utils: OpenGL support for NVIDIA drivers'
  16.               'catalyst: OpenGL support for AMD/ATI Catalyst drivers')
  17. elif [ $CARCH == x86_64 ]; then
  18.   depends=('lib32-zlib' 'lib32-sdl')
  19.   makedepends=('nasm' 'gcc-multilib')
  20.   optdepends=('lib32-libgl: OpenGL support for open source gfx drivers'
  21.               'lib32-nvidia-utils: OpenGL support for NVIDIA drivers'
  22.               'lib32-catalyst-utils: OpenGL support for AMD/ATI Catalyst drivers')
  23. fi
  24.  
  25. source=(http://download.berlios.de/${pkgname}/${pkgname}-${pkgver}.tar.gz)
  26. install=gngeo.install
  27. md5sums=('a91836e6762bbc28ad164ef94b2d00f8')
  28.  
  29. build() {
  30.   cd ${srcdir}/${pkgname}-${pkgver}
  31.  
  32.   if [ $CARCH == i686 ]; then
  33.     ./configure --prefix=/usr --mandir=/usr/share/man
  34.   elif [ $CARCH == x86_64 ]; then
  35.     ./configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib32 CC='gcc -m32'
  36.   fi
  37.  
  38.   make
  39. }
  40.  
  41. package() {
  42.   cd ${srcdir}/${pkgname}-${pkgver}
  43.  
  44.   make DESTDIR=${pkgdir} install
  45.  
  46.   # Install the sample configuration file
  47.   install -m644 sample_gngeorc ${pkgdir}/usr/share/${pkgname}/
  48. }
  49.  
clone this paste RAW Paste Data