summaryrefslogtreecommitdiff
path: root/multilib/zsnes/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /multilib/zsnes/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'multilib/zsnes/PKGBUILD')
-rw-r--r--multilib/zsnes/PKGBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/multilib/zsnes/PKGBUILD b/multilib/zsnes/PKGBUILD
new file mode 100644
index 000000000..a15d029e4
--- /dev/null
+++ b/multilib/zsnes/PKGBUILD
@@ -0,0 +1,56 @@
+# $Id: PKGBUILD 28220 2010-10-03 23:52:11Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Frank Tetzel <frank.tetzel@mailbox.tu-dresden.de>
+# Contributor: Hugo Doria <hugo@archlinux.org>
+# Contributor: Aurelien Foret <orelien@chez.com>
+
+pkgname=zsnes
+pkgver=1.51
+pkgrel=7
+pkgdesc="Super Nintendo emulator"
+url="http://www.zsnes.com/"
+arch=('i686' 'x86_64')
+license=('GPL')
+
+if [ $CARCH == "x86_64" ]; then
+ depends=('gcc-libs-multilib' 'lib32-sdl' 'lib32-libpng>=1.4.0' 'lib32-libgl' 'lib32-ncurses' 'lib32-mesa')
+ makedepends=('nasm' 'gcc-multilib')
+else
+ depends=('gcc-libs' 'sdl' 'libpng>=1.4.0' 'libgl' 'ncurses' 'mesa')
+ makedepends=('nasm' 'gcc')
+fi
+
+source=(http://downloads.sourceforge.net/${pkgname}/zsnes151src.tar.bz2
+ zsnes.patch
+ zsnes.desktop
+ zsnes_icon.png)
+md5sums=('7071186bf80632ae88a153239498d8c9'
+ '3af40c7d674ebfce1bb1ab6b7e9a8fe4'
+ 'b100b2aa342c551167d7c5dcdcde9dd4'
+ 'b5260c02adfc3b7ff725041214b00bfd')
+
+build() {
+ cd ${srcdir}/${pkgname}_1_51/
+ patch -p1 -i ../zsnes.patch || return 1
+
+ cd ${srcdir}/${pkgname}_1_51/src
+if [ $CARCH == "x86_64" ]; then
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+fi
+ ./autogen.sh --prefix=/usr \
+ x_libraries=/usr/lib \
+ force_arch=i686 \
+ --enable-release
+
+ make || return 1
+ make DESTDIR=${pkgdir} install
+
+ # adding --mandir= to autoconf line fails
+ install -dm755 ${pkgdir}/usr/share
+
+ install -Dm644 ${srcdir}/zsnes.desktop ${pkgdir}/usr/share/applications/zsnes.desktop
+ install -Dm644 ${srcdir}/zsnes_icon.png ${pkgdir}/usr/share/pixmaps/zsnes_icon.png
+
+ mv ${pkgdir}/usr/man ${pkgdir}/usr/share
+}