diff options
Diffstat (limited to 'community/snes9x')
-rw-r--r-- | community/snes9x/PKGBUILD | 56 | ||||
-rw-r--r-- | community/snes9x/snes9x-gtk.install | 12 | ||||
-rw-r--r-- | community/snes9x/snes9x-gtk2.24.diff.gz | bin | 0 -> 46504 bytes |
3 files changed, 68 insertions, 0 deletions
diff --git a/community/snes9x/PKGBUILD b/community/snes9x/PKGBUILD new file mode 100644 index 000000000..d7d424871 --- /dev/null +++ b/community/snes9x/PKGBUILD @@ -0,0 +1,56 @@ +# $Id: PKGBUILD 78959 2012-10-28 04:11:03Z ebelanger $ +# Maintainer: Eric BĂ©langer <eric@archlinux.org> + +pkgbase=snes9x +pkgname=('snes9x' 'snes9x-gtk') +pkgver=1.53 +pkgrel=5 +arch=('i686' 'x86_64') +url="https://code.google.com/p/snes9x-gtk/" +license=('custom') +makedepends=('intltool' 'nasm' 'mesa' 'libpulse' 'libpng' 'sdl' 'gtk2' 'libxv' \ + 'desktop-file-utils' 'gnome-icon-theme') +source=(http://snes9x-gtk.googlecode.com/files/${pkgbase}-${pkgver}-src.tar.bz2 + snes9x-gtk2.24.diff.gz) +sha1sums=('57be6480369f66b9aaaeb722789ce114f58ed1e2' + '680dbe0a70f1821bc7931539e72f5a1a95e3938c') + +build() { + cd "${srcdir}/${pkgbase}-${pkgver}-src" + patch -p1 -i "${srcdir}/snes9x-gtk2.24.diff" + cd unix + ./configure --prefix=/usr --with-sdd1-decomp --enable-netplay + make + + cd "${srcdir}/${pkgbase}-${pkgver}-src/gtk" + ./configure --prefix=/usr --with-sdd1-decomp --with-netplay --with-opengl + make +} + +package_snes9x() { + pkgdesc="A portable Emulator for the Super Nintendo Entertainment System" + depends=('gcc-libs' 'libpng' 'libxext' 'libsm') + + cd "${srcdir}/${pkgbase}-${pkgver}-src/unix" + install -D -m755 snes9x "${pkgdir}/usr/bin/snes9x" + install -d "${pkgdir}/usr/share/doc/${pkgname}" + install -D -m644 ../docs/{snes9x.conf.default,{control-inputs,controls,snapshots}.txt} \ + "${pkgdir}/usr/share/doc/${pkgname}/" + install -D -m644 "${srcdir}/${pkgbase}-${pkgver}-src/docs/snes9x-license.txt" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_snes9x-gtk() { + pkgdesc="A portable Emulator for the Super Nintendo Entertainment System - GTK version" + license=('custom' 'LGPL') + depends=('sdl' 'libgl' 'libpulse' 'gtk2' 'libxv' 'desktop-file-utils' 'gnome-icon-theme') + install=snes9x-gtk.install + + cd "${srcdir}/${pkgbase}-${pkgver}-src/gtk" + make DESTDIR="${pkgdir}" install + install -d "${pkgdir}/usr/share/doc/${pkgname}" + install -D -m644 ../docs/{snes9x.conf.default,{control-inputs,controls,snapshots}.txt} \ + "${pkgdir}/usr/share/doc/${pkgname}/" + install -D -m644 "${srcdir}/${pkgbase}-${pkgver}-src/docs/snes9x-license.txt" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/community/snes9x/snes9x-gtk.install b/community/snes9x/snes9x-gtk.install new file mode 100644 index 000000000..2c88492dd --- /dev/null +++ b/community/snes9x/snes9x-gtk.install @@ -0,0 +1,12 @@ +post_install() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install $1 +} + +post_remove () { + post_install $1 +} diff --git a/community/snes9x/snes9x-gtk2.24.diff.gz b/community/snes9x/snes9x-gtk2.24.diff.gz Binary files differnew file mode 100644 index 000000000..f8e86d7f2 --- /dev/null +++ b/community/snes9x/snes9x-gtk2.24.diff.gz |