summaryrefslogtreecommitdiff
path: root/community/nestopia/PKGBUILD
blob: b0fee1ae2d17e420ec70e2ef557559de1367cfe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id: PKGBUILD 80697 2012-11-29 16:17:59Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Tiago Pierezan Camargo <tcamargo@gmail.com>
# Contributor: robb_force <robb_force@holybuffalo.net>

pkgname=nestopia
pkgver=1.43
pkgrel=1
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' 'glu')
makedepends=('unzip' 'mesa')
source=("$pkgname-$pkgver.tar.gz::https://github.com/rdanbrook/nestopia/tarball/$pkgver"
	"build-fix.patch")
md5sums=('c73d45015eb16b9870a620a188a23275'
         '49dc5a51243a023b47f25ff3d6aabd89')

build() {
  cd ${srcdir}/rdanbrook-nestopia-*
  patch -p1 <$srcdir/build-fix.patch
  export LDFLAGS=-lX11
  make PREFIX=/usr -j1
}

package() {
  cd ${srcdir}/rdanbrook-nestopia-*
  mkdir -p $pkgdir/usr/{bin,share/nestopia}
  make install PREFIX=$pkgdir/usr
}