summaryrefslogtreecommitdiff
path: root/community/nestopia/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/nestopia/PKGBUILD')
-rw-r--r--community/nestopia/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/nestopia/PKGBUILD b/community/nestopia/PKGBUILD
new file mode 100644
index 000000000..e2ddb8395
--- /dev/null
+++ b/community/nestopia/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 82601 2013-01-21 11:30:27Z 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.44
+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=('ea59be039dfc50ae32a6decf905f04b8'
+ '4a852d8e484c2fe214377ec18a68356f')
+
+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
+}