updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / fakenes / PKGBUILD
blob126fc2e3f620cfd437ac685105a64f33d1d56f9f
1 # Contributor: jsteel <jsteel at vorx dot com>
2 # Contributor: Christoph Zeiler <rabyte*gmail>
4 pkgname=fakenes
5 pkgver=0.5.9_beta3
6 pkgrel=7
7 pkgdesc="An NES (Nintendo Famicom) emulator"
8 arch=('any')
9 url="http://kaede.strangesoft.net/kadence/"
10 license=('ZLIB')
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 \
15         $pkgname.desktop \
16         gcc-4.2.patch)
17 md5sums=('48330653c50747d082ee13958cbf2a2c'
18          'af9764bbd90bd2ff9ea3b5962c208ec8'
19          '7c3cc8831684352901c3c17da16a0fc5'
20          '9cde690292bcbfba140139bf1dc54ae1')
22 build() {
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