1 # Contributor: jsteel <jsteel at vorx dot com>
2 # Contributor: Christoph Zeiler <rabyte*gmail>
7 pkgdesc="An NES (Nintendo Famicom) emulator"
9 url="http://kaede.strangesoft.net/kadence/"
11 depends=('hawknl' 'openal' 'allegro' 'mesa')
12 makedepends=('pkgconfig')
13 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-0.5.9-beta3.tar.gz \
14 http://www.fileden.com/files/2010/12/31/3049394/fakenes.png \
17 md5sums=('48330653c50747d082ee13958cbf2a2c'
18 'af9764bbd90bd2ff9ea3b5962c208ec8'
19 '7c3cc8831684352901c3c17da16a0fc5'
20 '9cde690292bcbfba140139bf1dc54ae1')
23 cd $pkgname-${pkgver//_/-}
25 patch -Np0 -i ../gcc-4.2.patch || return 1
26 sed 's|openal-config|pkg-config openal|g' -i build/openal.cbd
28 make CFLAGS="${CFLAGS}" || return 1
30 install -Dm755 fakenes $pkgdir/usr/bin/fakenes
31 install -Dm644 ../fakenes.png $pkgdir/usr/share/pixmaps/fakenes.png
32 install -Dm644 ../fakenes.desktop $pkgdir/usr/share/applications/fakenes.desktop
33 install -Dm644 docs/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE