# Maintainer: Eric Belanger <belanger@astro.umontreal.ca>
# Contributor: Jo Christian Bergsk�s <jcberg@gmail.com>

pkgname=fceu
pkgver=0.98.15
pkgrel=1
pkgdesc="FCE Ultra is a fast and ultra-compatible NES/Famicom emulator with SDL, OpenGL and SVGALIB support."
arch=('i686' 'x86_64')
url="http://fceultra.sourceforge.net"
license="GPL"
options=('docs')
depends=('sdl' 'zlib')
source=(ftp://ftp.knoppmyth.net/R6/sources/$pkgname-$pkgver-src.tar.bz2)
md5sums=('bfe9aa7f91c19fa17bb6e5424dc5901b')

build() {
  cd $startdir/src/fceu
  ./configure --prefix=/usr --with-opengl --build=i686-linux-gnu
  make || return 1
  make DESTDIR=$startdir/pkg install
  install -D -m644 $startdir/src/fceu/Documentation/fceu-sdl.6 $startdir/pkg/usr/man/man6/fceu.6
  install -d $startdir/pkg/usr/share/doc/fceu-doc
  cp -r $startdir/src/fceu/Documentation/* $startdir/pkg/usr/share/doc/fceu-doc
}