# Maintainer: Daenyth <Daenyth+Arch [at] gmail [dot] com>
# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
# Contributor: kagan <juanynie@mi.madritel.es>
pkgname=mednafen
pkgver=0.8.C
pkgrel=1
pkgdesc="A command-line multi-system gaming emulator"
url="http://mednafen.sourceforge.net/"
license=(GPL)
arch=('i686' 'x86_64')
depends=('libcdio>=0.80-3' 'libsamplerate' 'libogg' 'libvorbis' 'sdl' 'sdl_net' 'libsndfile' 'zlib')
makedepends=('pkgconfig')
source=(http://downloads.sourceforge.net/mednafen/$pkgname-$pkgver.tar.bz2)
md5sums=('e8f4b6ba7ed2eca399b02578e1803831')

build() {
  cd $srcdir/$pkgname
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$pkgdir install
}