summaryrefslogtreecommitdiffstats
path: root/abs/extra/snes9x/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/snes9x/PKGBUILD')
-rw-r--r--abs/extra/snes9x/PKGBUILD77
1 files changed, 42 insertions, 35 deletions
diff --git a/abs/extra/snes9x/PKGBUILD b/abs/extra/snes9x/PKGBUILD
index 928081b..1b10fe0 100644
--- a/abs/extra/snes9x/PKGBUILD
+++ b/abs/extra/snes9x/PKGBUILD
@@ -1,42 +1,49 @@
-# Maintainer: Alexander Baldeck <alexander@archlinux.org>
-pkgname=snes9x
-pkgver=1.51
-pkgrel=1
-pkgdesc="A portable Emulator for the Super Nintento Entertainment System"
-arch=(i686 x86_64)
+# $Id: PKGBUILD,v 1.13 2007/06/19 02:12:51 Snowman Exp $
+# Maintainer: Eric Belanger <eric@archlinux.org>
+# Contributor: Alexander Baldeck <alexander@archlinux.org>
+# Contributor: Marcel Wysocki <maci@satgnu.net>
+
+pkgbase=snes9x
+pkgname=('snes9x' 'snes9x-gtk')
+pkgver=1.52
+pkgrel=2
+arch=('i686' 'x86_64')
url="http://www.snes9x.com"
-license="Freeware"
-# remove nasm on non x86 platforms
-depends=('zlib' 'libpng' 'sdl' 'nasm' 'mesa')
-install=snes9x.install
-source=(http://www.geocities.co.jp/SiliconValley-PaloAlto/2560/release/${pkgname}-${pkgver}-src.tar.bz2 \
- snes9x-fixes2.patch)
-build() {
- mkdir -p ${startdir}/pkg/usr/bin
+license=('custom')
+depends=('zlib' 'libpng' 'sdl' 'alsa-lib' 'libglade' 'libxv')
+makedepends=('intltool' 'nasm' 'mesa')
+source=(http://snes9x-gtk.googlecode.com/files/${pkgbase}-${pkgver}-src.tar.bz2)
+md5sums=('813bd3a0f99732ee0238a2c8ab417725')
+sha1sums=('fb3957b68fcede882518516094a73ec5bbed76cf')
- cd ${startdir}/src/${pkgname}-${pkgver}-src
- #patch -Np1 -i ${startdir}/src/snes9x-fixes2.patch || return 1
+build() {
+ cd "${srcdir}/${pkgbase}-${pkgver}-src/unix"
+ ./configure --prefix=/usr --with-sdd1-decomp --enable-netplay || return 1
+ make || return 1
- # build snes9x with opengl
- ./configure --prefix=/usr \
- --with-sdd1-decomp \
- --with-opengl \
- --with-netplay
+ cd "${srcdir}/${pkgbase}-${pkgver}-src/gtk"
+ ./configure --prefix=/usr --with-sdd1-decomp --with-netplay --with-opengl || return 1
make || return 1
- install -D ${startdir}/src/${pkgname}-${pkgver}-src/osnes9x ${startdir}/pkg/usr/bin/osnes9x
+}
- # build snes9x with glide
- #cd $startdir/src/$pkgname-$pkgver-src
- #./configure --prefix=/usr --with-sdd1-decomp --with-glide
- #make || return 1
- #install -D ${startdir}/src/${pkgname}-${pkgver}-src/osnes9x ${startdir}/pkg/usr/bin/3dfxsnes9x
+package_snes9x() {
+ pkgdesc="A portable Emulator for the Super Nintento Entertainment System"
+ depends=('zlib' 'gcc-libs' 'libpng' 'libxext' 'libsm')
- # build snes9x without opengl
- ./configure --prefix=/usr \
- --with-sdd1-decomp \
- --with-netplay
- make clean || return 1
- make || return 1
- install -D ${startdir}/src/${pkgname}-${pkgver}-src/snes9x ${startdir}/pkg/usr/bin/snes9x
+ cd "${srcdir}/${pkgbase}-${pkgver}-src/unix"
+ install -D -m755 snes9x "${pkgdir}/usr/bin/snes9x" || return 1
+ install -D -m644 "${srcdir}/${pkgbase}-${pkgver}-src/docs/snes9x-license.txt" \
+ "${pkgdir}/usr/share/licenses/snes9x/LICENSE"
+}
+
+package_snes9x-gtk() {
+ pkgdesc="A portable Emulator for the Super Nintento Entertainment System - GTK version"
+ license=('custom' 'LGPL')
+ depends=('sdl' 'libgl' 'alsa-lib' 'libglade' 'libxv')
+ install=snes9x-gtk.install
+
+ cd "${srcdir}/${pkgbase}-${pkgver}-src/gtk"
+ make DESTDIR="${pkgdir}" install || return 1
+ install -D -m644 "${srcdir}/${pkgbase}-${pkgver}-src/docs/snes9x-license.txt" \
+ "${pkgdir}/usr/share/licenses/snes9x-gtk/LICENSE"
}
-md5sums=('a1038cc761f400318cdced960972f8a7' '395bea78242afc82b3756225fe4ff954')