# $Id: PKGBUILD 77297 2012-10-08 15:06:02Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Tiago Pierezan Camargo # Contributor: robb_force pkgname=nestopia pkgver=1.42 pkgrel=3 pkgdesc='An NES emulator featuring cycle exact emulation, a ridiculous number of mappers, and lots of custom sound chips.' url='http://0ldsk00l.ca/nestopia.html' license=('GPL') arch=('i686' 'x86_64') depends=('sdl' 'alsa-lib' 'gtk3' 'mesa' 'glu') makedepends=('unzip') source=("$pkgname-$pkgver.tar.gz::https://github.com/rdanbrook/nestopia/tarball/$pkgver" "build-fix.patch") md5sums=('ce7ffba59f19c764f08546e015777172' '49dc5a51243a023b47f25ff3d6aabd89') build() { cd ${srcdir}/rdanbrook-nestopia-* patch -p1 <$srcdir/build-fix.patch make PREFIX=/usr -j1 } package() { cd ${srcdir}/rdanbrook-nestopia-* mkdir -p $pkgdir/usr/{bin,share/nestopia} make install PREFIX=$pkgdir/usr }