summaryrefslogtreecommitdiff
path: root/community/nestopia
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/nestopia
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/nestopia')
-rw-r--r--community/nestopia/ChangeLog12
-rw-r--r--community/nestopia/PKGBUILD31
-rw-r--r--community/nestopia/build-fix.patch18
3 files changed, 61 insertions, 0 deletions
diff --git a/community/nestopia/ChangeLog b/community/nestopia/ChangeLog
new file mode 100644
index 000000000..5077d00b2
--- /dev/null
+++ b/community/nestopia/ChangeLog
@@ -0,0 +1,12 @@
+2008-12-16 Tiago Pierezan Camargo <tcamargo@gmail.com>
+
+ * PKGBUILD: Minor corrections.
+
+2008-12-04 Tiago Pierezan Camargo <tcamargo@gmail.com>
+
+ * PKGBUILD (source): Package adopted.
+ Variable/version cleanup.
+ Patch to remove bogus error messages on program exit.
+ New dependency: mesa.
+ Renamed executable to nestopia.
+
diff --git a/community/nestopia/PKGBUILD b/community/nestopia/PKGBUILD
new file mode 100644
index 000000000..4c4146735
--- /dev/null
+++ b/community/nestopia/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 94780 2013-07-30 10:05:36Z 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.45
+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' 'libarchive')
+makedepends=('unzip' 'mesa')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/rdanbrook/nestopia/tarball/$pkgver"
+ "build-fix.patch")
+md5sums=('f34aa327011af7c149ec679db5b53362'
+ '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
+}
diff --git a/community/nestopia/build-fix.patch b/community/nestopia/build-fix.patch
new file mode 100644
index 000000000..a7d82ead1
--- /dev/null
+++ b/community/nestopia/build-fix.patch
@@ -0,0 +1,18 @@
+diff -wbBur rdanbrook-nestopia-f1dde9b/Makefile rdanbrook-nestopia-f1dde9b.my/Makefile
+--- rdanbrook-nestopia-f1dde9b/Makefile 2013-01-20 20:10:25.000000000 +0400
++++ rdanbrook-nestopia-f1dde9b.my/Makefile 2013-01-21 15:18:54.727577673 +0400
+@@ -197,11 +197,11 @@
+ install -m 0644 NstDatabase.xml $(DATADIR)
+ install -m 0644 source/unix/icons/*.png $(DATADIR)/icons
+ install -m 0644 source/unix/icons/*.svg $(DATADIR)/icons
+- install -m 0644 source/unix/icons/nestopia.svg $(PREFIX)/share/pixmaps
+- xdg-desktop-menu install --novendor $(DATADIR)/nestopia.desktop
++ install -m 0644 source/unix/icons/nestopia.svg $(PREFIX)/share/pixmaps/nestopia.svg
++ install -Dm0644 $(DATADIR)/nestopia.desktop $(PREFIX)/share/applications/nestopia.desktop
+
+ uninstall:
+- xdg-desktop-menu uninstall $(DATADIR)/nestopia.desktop
++ rm $(PREFIX)/share/applications/nestopia.desktop
+ rm $(PREFIX)/share/pixmaps/nestopia.svg
+ rm $(BINDIR)/$(BIN)
+ rm -rf $(DATADIR)