summaryrefslogtreecommitdiff
path: root/community/nestopia/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-01-27 14:27:56 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-01-27 14:27:56 +0100
commit6cc3a23ea1231ea627394677df2bebdc403acb38 (patch)
tree14c20984a10df92c0b5cbb3b4477f0358cf8b01f /community/nestopia/PKGBUILD
parent8e40bdbb2496be15fdba2e683af427bc2333be42 (diff)
parent3741146d50cb93e8985f8aac937e36d35ee76446 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community-staging/torcs/PKGBUILD community/fceux/PKGBUILD core/gcc/PKGBUILD core/wireless_tools/PKGBUILD extra/gtk-xfce-engine/PKGBUILD extra/gtk2/PKGBUILD multilib-testing/lib32-glibc/PKGBUILD multilib/gcc-multilib/PKGBUILD multilib/lib32-sdl/PKGBUILD testing/kdebase-runtime/PKGBUILD testing/kdelibs/PKGBUILD testing/libarchive/PKGBUILD testing/systemd/PKGBUILD testing/systemd/systemd.install testing/udev/PKGBUILD
Diffstat (limited to 'community/nestopia/PKGBUILD')
-rw-r--r--community/nestopia/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/community/nestopia/PKGBUILD b/community/nestopia/PKGBUILD
new file mode 100644
index 000000000..0cff030f3
--- /dev/null
+++ b/community/nestopia/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id: PKGBUILD 53185 2011-07-31 19:02:49Z 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=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'
+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')
+
+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
+
+ # 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}/
+}