summaryrefslogtreecommitdiff
path: root/community/nestopia
diff options
context:
space:
mode:
Diffstat (limited to 'community/nestopia')
-rw-r--r--community/nestopia/PKGBUILD52
-rw-r--r--community/nestopia/build-fix.patch19
2 files changed, 37 insertions, 34 deletions
diff --git a/community/nestopia/PKGBUILD b/community/nestopia/PKGBUILD
index c73ddbce7..d03528a26 100644
--- a/community/nestopia/PKGBUILD
+++ b/community/nestopia/PKGBUILD
@@ -1,46 +1,30 @@
-# $Id: PKGBUILD 63676 2012-02-05 12:05:46Z ibiru $
+# $Id: PKGBUILD 77858 2012-10-15 10:08:57Z 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.40h
-pkgrel=5
+pkgver=1.42
+pkgrel=4
pkgdesc='An NES emulator featuring cycle exact emulation, a ridiculous number of mappers, and lots of custom sound chips.'
-url='http://rbelmont.mameworld.info/?page_id=200'
+url='http://0ldsk00l.ca/nestopia.html'
license=('GPL')
arch=('i686' 'x86_64')
-depends=('sdl>=1.2.12' 'alsa-lib' 'gtk2>=2.4' 'mesa')
-makedepends=('unzip')
-# rbelmont.mameworld.info blocks some user-agents
-DLAGENTS=('http::/usr/bin/wget -c -t 3 --waitretry=3 --user-agent=Mozilla/5.0 -O %o %u'
- 'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u')
-source=("https://downloads.sourceforge.net/project/nestopia/Nestopia/v${pkgver//[a-z]/}/Nestopia${pkgver//[.a-z]/}src.zip"
- "http://rbelmont.mameworld.info/nst${pkgver//[a.a-z]/}_lnx_release_${pkgver:${#pkgver}-1:1}.zip"
- "nestopia"
- "nestopia_bogus_error_on_save_settings.patch")
-md5sums=('526c99a06d2b257135e7047b0ed95ae0'
- 'f9a9a905bada67e11dac1364612d0b35'
- 'abc2f030dd291f58d65c9095ef024225'
- '0160078c9afcbb1a6ac389c3989929f7')
+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=('ce7ffba59f19c764f08546e015777172'
+ '49dc5a51243a023b47f25ff3d6aabd89')
build() {
- cd ${srcdir}
- # remove a bogus error message on exit
- patch -p0 < nestopia_bogus_error_on_save_settings.patch
- make -j1
-
- # Install the nestopia script that copies required files to ~/.nestopia
- install -Dm755 ${srcdir}/${pkgname} ${pkgdir}/usr/bin/${pkgname}
-
- # Older releases used a .sh file. Make a symlink to make everyone happy
- cd ${pkgdir}/usr/bin
- ln -s ${pkgname} ${pkgname}.sh
+ cd ${srcdir}/rdanbrook-nestopia-*
+ patch -p1 <$srcdir/build-fix.patch
+ make PREFIX=/usr -j1
+}
- # Install the required files and executable in /usr/share
- cd ${srcdir}
- install -Dm755 nst ${pkgdir}/usr/bin/${pkgname}-bin
- install -dm775 ${pkgdir}/usr/share/${pkgname}/
- install -m644 nstcontrols ${pkgdir}/usr/share/${pkgname}/
- install -m644 NstDatabase.xml ${pkgdir}/usr/share/${pkgname}/
+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..7b8609f8d
--- /dev/null
+++ b/community/nestopia/build-fix.patch
@@ -0,0 +1,19 @@
+diff -wbBur rdanbrook-nestopia-53aa38a/Makefile rdanbrook-nestopia-53aa38a.my/Makefile
+--- rdanbrook-nestopia-53aa38a/Makefile 2012-09-26 04:21:32.000000000 +0400
++++ rdanbrook-nestopia-53aa38a.my/Makefile 2012-10-01 21:12:08.000000000 +0400
+@@ -186,12 +186,12 @@
+ install -m 0644 NstDatabase.xml $(DATADIR)
+ install -m 0644 source/linux/icons/*.png $(DATADIR)/icons
+ install -m 0644 source/linux/icons/*.svg $(DATADIR)/icons
+- install -m 0644 source/linux/icons/nestopia.svg /usr/share/pixmaps
+- xdg-desktop-menu install --novendor $(DATADIR)/nestopia.desktop
++ install -Dm0644 source/linux/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 /usr/share/pixmaps/nestopia.svg
++ rm $(PREFIX)/share/pixmaps/nestopia.svg
+ rm $(BINDIR)/$(EXE)
+ rm -rf $(DATADIR)
+